pull/91/head
eric 2018-06-08 15:17:39 -04:00
parent 8b385d05ed
commit 455032ebc3
4 changed files with 35 additions and 36 deletions

View File

@ -1,10 +1,11 @@
import requests
import random
from django.conf import settings
from urllib import quote
from functools import partial
from urllib import quote
from xml.etree import ElementTree
import requests
from django.conf import settings
from django.apps import apps
from . exceptions import BooXtreamError
@ -91,4 +92,3 @@ class BooXtream(object):
expirydays=kwargs.get('expirydays'),
)
return boox

View File

@ -22,6 +22,5 @@ class Boox(models.Model):
return self.download_link_epub
elif format == 'mobi':
return self.download_link_mobi
else:
return None