mirror of
https://github.com/janeczku/calibre-web
synced 2025-02-25 23:40:05 +00:00
Prefer kepub (#1439)
Only offer kepub download URL over Kobo sync API when available
This commit is contained in:
parent
843279bacb
commit
d951ee4b83
@ -344,7 +344,9 @@ def get_seriesindex(book):
|
||||
|
||||
def get_metadata(book):
|
||||
download_urls = []
|
||||
for book_data in book.data:
|
||||
kepub = [data for data in book.data if data.format == 'KEPUB']
|
||||
|
||||
for book_data in kepub if len(kepub) > 0 else book.data:
|
||||
if book_data.format not in KOBO_FORMATS:
|
||||
continue
|
||||
for kobo_format in KOBO_FORMATS[book_data.format]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user