Merge pull request #183 from Gluejar/fix_readmill_redirect

need this to work
pull/1/head
Raymond Yee 2013-06-20 13:35:48 -07:00
commit 93e0e8593c
1 changed files with 2 additions and 1 deletions

View File

@ -2353,7 +2353,8 @@ def download(request, work_id):
other_ebooks = work.ebooks().filter(edition__unglued=False)
try:
readmill_epub_ebook = work.ebooks().filter(format='epub').exclude(provider='Google Books')[0]
readmill_epub_url = settings.BASE_URL_SECURE + reverse('download_ebook',args=[readmill_epub_ebook.id])
#readmill_epub_url = settings.BASE_URL_SECURE + reverse('download_ebook',args=[readmill_epub_ebook.id])
readmill_epub_url = readmill_epub_ebook.url
except:
readmill_epub_url = None