From: Jan Szejko Date: Wed, 30 May 2018 14:12:21 +0000 (+0200) Subject: previews: update epub urls in opds X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/763fb1b30888d89b21a3d8d7f4beba17358e1fe0?ds=inline;hp=--cc previews: update epub urls in opds --- 763fb1b30888d89b21a3d8d7f4beba17358e1fe0 diff --git a/src/opds/views.py b/src/opds/views.py index 189ff0f5a..0c31cd200 100644 --- a/src/opds/views.py +++ b/src/opds/views.py @@ -201,7 +201,7 @@ class AcquisitionFeed(Feed): return u'' def item_enclosure_url(self, book): - return full_url(book.epub_file.url) if book.epub_file else None + return full_url(book.epub_url()) if book.epub_file else None def item_enclosure_length(self, book): return book.epub_file.size if book.epub_file else None