瀏覽代碼

[books] Fix calculation of current page

Colin Powell 8 月之前
父節點
當前提交
2136c1562a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vrobbler/apps/books/koreader.py

+ 1 - 1
vrobbler/apps/books/koreader.py

@@ -296,7 +296,7 @@ def build_scrobbles_from_book_map(
                     log_data = {
                         "koreader_hash": book_dict.get("hash"),
                         "page_data": scrobble_page_data,
-                        "pages_read": cur_page_number,
+                        "pages_read": len(scrobble_page_data.keys()),
                     }
                     scrobbles_to_create.append(
                         Scrobble(