This commit is contained in:
Kovid Goyal 2018-05-24 12:39:40 +05:30
parent 1b89462d73
commit 0b53f53529
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 6 additions and 4 deletions

View File

@ -91,7 +91,8 @@ class NewYorkTimes(BasicNewsRecipe):
dict(id=lambda x: x and 'sharetools-' in x), dict(id=lambda x: x and 'sharetools-' in x),
dict(id='newsletter-promo supported-by-ad bottom-wrapper'.split()), dict(id='newsletter-promo supported-by-ad bottom-wrapper'.split()),
classes('story-print-citation supported-by accessibility-ad-header visually-hidden bottom-of-article ad'), classes('story-print-citation supported-by accessibility-ad-header visually-hidden bottom-of-article ad'),
dict(attrs={'class': lambda x: x and ('SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}), dict(attrs={'class': lambda x: x and (
'SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}),
] ]
def preprocess_html(self, soup): def preprocess_html(self, soup):

View File

@ -91,7 +91,8 @@ class NewYorkTimes(BasicNewsRecipe):
dict(id=lambda x: x and 'sharetools-' in x), dict(id=lambda x: x and 'sharetools-' in x),
dict(id='newsletter-promo supported-by-ad bottom-wrapper'.split()), dict(id='newsletter-promo supported-by-ad bottom-wrapper'.split()),
classes('story-print-citation supported-by accessibility-ad-header visually-hidden bottom-of-article ad'), classes('story-print-citation supported-by accessibility-ad-header visually-hidden bottom-of-article ad'),
dict(attrs={'class': lambda x: x and ('SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}), dict(attrs={'class': lambda x: x and (
'SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}),
] ]
def preprocess_html(self, soup): def preprocess_html(self, soup):

View File

@ -509,8 +509,8 @@ class Quickview(QDialog, Ui_Quickview):
select_item = None select_item = None
self.books_table.setSortingEnabled(False) self.books_table.setSortingEnabled(False)
self.books_table.blockSignals(True) self.books_table.blockSignals(True)
tt = ('<p>' + tt = ('<p>' + _(
_('Double click on a book to change the selection in the library view or ' 'Double click on a book to change the selection in the library view or '
'change the column shown in the left-hand pane. ' 'change the column shown in the left-hand pane. '
'Shift- or Control- double click to edit the metadata of a book, ' 'Shift- or Control- double click to edit the metadata of a book, '
'which also changes the selected book.' 'which also changes the selected book.'