mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
9796c9f80c
commit
260c330da3
@ -82,7 +82,7 @@ class NewYorker(BasicNewsRecipe):
|
|||||||
cover_url_width_index = self.cover_url.find("w_")
|
cover_url_width_index = self.cover_url.find("w_")
|
||||||
old_width = self.cover_url[cover_url_width_index:cover_url_width_index+5]
|
old_width = self.cover_url[cover_url_width_index:cover_url_width_index+5]
|
||||||
self.cover_url = self.cover_url.replace(old_width, "w_560")
|
self.cover_url = self.cover_url.replace(old_width, "w_560")
|
||||||
except Exception as e:
|
except Exception:
|
||||||
self.log('Failed enlarging cover img, using the original one')
|
self.log('Failed enlarging cover img, using the original one')
|
||||||
|
|
||||||
self.log('Found cover:', self.cover_url)
|
self.log('Found cover:', self.cover_url)
|
||||||
|
@ -5,6 +5,7 @@ import sys
|
|||||||
|
|
||||||
from polyglot.builtins import unicode_type
|
from polyglot.builtins import unicode_type
|
||||||
|
|
||||||
|
|
||||||
class CheckEncoding:
|
class CheckEncoding:
|
||||||
|
|
||||||
def __init__(self, bug_handler):
|
def __init__(self, bug_handler):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user