mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
ce05d2cc3b
commit
9963f18768
@ -424,14 +424,13 @@ class NYTimes(BasicNewsRecipe):
|
||||
cover_tag = 'NY_NYT'
|
||||
|
||||
def get_cover_url(self):
|
||||
from datetime import timedelta, date
|
||||
from datetime import date
|
||||
today = date.today()
|
||||
cover = 'https://static01.nyt.com/images/' \
|
||||
+ today.strftime('%Y') + '/' + today.strftime('%m') + '/' \
|
||||
+ today.strftime('%d') + '/nytfrontpage/scan.jpg'
|
||||
self.log(cover)
|
||||
br = BasicNewsRecipe.get_browser(self)
|
||||
daysback = 1
|
||||
try:
|
||||
br.open(cover)
|
||||
except:
|
||||
|
@ -449,14 +449,13 @@ class NYTimes(BasicNewsRecipe):
|
||||
cover_tag = 'NY_NYT'
|
||||
|
||||
def get_cover_url(self):
|
||||
from datetime import timedelta, date
|
||||
from datetime import date
|
||||
today = date.today()
|
||||
cover = 'https://static01.nyt.com/images/' \
|
||||
+ today.strftime('%Y') + '/' + today.strftime('%m') + '/' \
|
||||
+ today.strftime('%d') + '/nytfrontpage/scan.jpg'
|
||||
self.log(cover)
|
||||
br = BasicNewsRecipe.get_browser(self)
|
||||
daysback = 1
|
||||
try:
|
||||
br.open(cover)
|
||||
except:
|
||||
|
@ -1041,12 +1041,12 @@ class BulkSeries(BulkBase):
|
||||
disable_numbering_checkboxes(idx_widget_enable=False)
|
||||
apply_changes = True
|
||||
elif self.main_widget.text():
|
||||
self.remove_series.setEnabled(False);
|
||||
self.remove_series.setEnabled(False)
|
||||
disable_numbering_checkboxes(idx_widget_enable=True)
|
||||
apply_changes = True
|
||||
else: # no text, no clear. Basically reinitialize
|
||||
self.main_widget.setEnabled(True)
|
||||
self.remove_series.setEnabled(True);
|
||||
self.remove_series.setEnabled(True)
|
||||
disable_numbering_checkboxes(idx_widget_enable=False)
|
||||
apply_changes = False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user