diff --git a/src/calibre/srv/content.py b/src/calibre/srv/content.py index 53f99ca3d7..1432cc9611 100644 --- a/src/calibre/srv/content.py +++ b/src/calibre/srv/content.py @@ -278,7 +278,7 @@ def icon(ctx, rd, which): return ans -@endpoint('/get/{what}/{book_id}/{library_id=None}') +@endpoint('/get/{what}/{book_id}/{library_id=None}', android_workaround=True) def get(ctx, rd, what, book_id, library_id): book_id, rest = book_id.partition('_')[::2] try: diff --git a/src/calibre/srv/legacy.py b/src/calibre/srv/legacy.py index b9150cdc55..191aa285b7 100644 --- a/src/calibre/srv/legacy.py +++ b/src/calibre/srv/legacy.py @@ -257,6 +257,6 @@ def stanza(ctx, rd, rest): raise HTTPRedirect(ctx.url_for('/opds')) -@endpoint('/legacy/get/{what}/{book_id}/{library_id}/{+filename=""}') +@endpoint('/legacy/get/{what}/{book_id}/{library_id}/{+filename=""}', android_workaround=True) def legacy_get(ctx, rd, what, book_id, library_id, filename): return get(ctx, rd, what, book_id, library_id)