This commit is contained in:
Kovid Goyal 2016-02-20 10:12:06 +05:30
parent 6a6c7a0105
commit a0a32a214a

View File

@ -245,10 +245,11 @@ def get(ctx, rd, what, book_id, library_id):
sz = rd.query.get('sz')
w, h = 60, 80
if sz is None:
try:
w, h = map(int, rest.split('_'))
except Exception:
pass
if rest:
try:
w, h = map(int, rest.split('_'))
except Exception:
pass
elif sz == 'full':
w = h = None
elif 'x' in sz: