mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Restore the android HTTP auth download workaround from the old server
This commit is contained in:
parent
39cefc303a
commit
9299f99939
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user