This commit is contained in:
Kovid Goyal 2017-12-01 08:50:04 +05:30
parent ce05d2cc3b
commit 9963f18768
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 5 additions and 7 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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