From 763fb1b30888d89b21a3d8d7f4beba17358e1fe0 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 30 May 2018 16:12:21 +0200 Subject: [PATCH 1/1] previews: update epub urls in opds --- src/opds/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1