Commit d951ee4b authored by Dave Mogle's avatar Dave Mogle

Prefer kepub (#1439)

Only offer kepub download URL over Kobo sync API when available
parent 843279ba
......@@ -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]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment