This commit is contained in:
Kovid Goyal 2024-08-01 21:00:05 +05:30
commit b0ddcfdc5a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
6 changed files with 9 additions and 9 deletions

View File

@ -12,7 +12,7 @@ class NBOnline(BasicNewsRecipe):
remove_tags_before = dict(id='kanban') remove_tags_before = dict(id='kanban')
remove_tags = [dict(name='div', id='footer')] remove_tags = [dict(name='div', id='footer')]
feeds = [('Nikkei Buisiness Online', feeds = [('Nikkei Business Online',
'http://business.nikkeibp.co.jp/rss/all_nbo.rdf')] 'http://business.nikkeibp.co.jp/rss/all_nbo.rdf')]
def get_cover_url(self): def get_cover_url(self):

View File

@ -53,7 +53,7 @@ class NrcNextRecipe(BasicNewsRecipe):
''' '''
def parse_index(self): def parse_index(self):
# Use the wesbite as an index. Their RSS feeds can be out of date. # Use the website as an index. Their RSS feeds can be out of date.
feeds = {} feeds = {}
feeds[u'columnisten'] = u'http://www.nrcnext.nl/columnisten/' feeds[u'columnisten'] = u'http://www.nrcnext.nl/columnisten/'
feeds[u'koken'] = u'http://www.nrcnext.nl/koken/' feeds[u'koken'] = u'http://www.nrcnext.nl/koken/'
@ -67,7 +67,7 @@ class NrcNextRecipe(BasicNewsRecipe):
for index, feed in feeds.items(): for index, feed in feeds.items():
soup = self.index_to_soup(feed) soup = self.index_to_soup(feed)
for post in soup.findAll(True, attrs={'class': 'post '}): for post in soup.findAll(True, attrs={'class': 'post '}):
# Find the links to the actual articles and rember the location # Find the links to the actual articles and remember the location
# they're pointing to and the title # they're pointing to and the title
a = post.find('a', attrs={'rel': 'bookmark'}) a = post.find('a', attrs={'rel': 'bookmark'})
href = a['href'] href = a['href']

View File

@ -440,10 +440,10 @@ class InterfaceAction(QObject):
class InterfaceActionWithLibraryDrop(InterfaceAction): class InterfaceActionWithLibraryDrop(InterfaceAction):
''' '''
Subclass of InterfaceAction that implemente methods to execute the default action Subclass of InterfaceAction that implements methods to execute the default action
by drop some books from the library. by drop some books from the library.
Inside the do_drop() method, the ids of the droped books are provided Inside the do_drop() method, the ids of the dropped books are provided
by the attribute self.dropped_ids by the attribute self.dropped_ids
''' '''

View File

@ -18,7 +18,7 @@ class NextMatchAction(InterfaceAction):
def genesis(self): def genesis(self):
''' '''
Setup this plugin. Only called once during initialization. self.gui is Setup this plugin. Only called once during initialization. self.gui is
available. The action secified by :attr:`action_spec` is available as available. The action specified by :attr:`action_spec` is available as
``self.qaction``. ``self.qaction``.
''' '''
self.can_move = None self.can_move = None

View File

@ -707,7 +707,7 @@ class CompareMany(QDialog):
self.action_button_action = action_button[2] self.action_button_action = action_button[2]
b.clicked.connect(self.action_button_clicked) b.clicked.connect(self.action_button_clicked)
# Add a Back button, wich allows the user to go back to the previous book cancel any reject/edit/accept that was done to it, and review it again # Add a Back button, which allows the user to go back to the previous book cancel any reject/edit/accept that was done to it, and review it again
# create a Back action that will be triggered when the user presses the back button or the back shortcut # create a Back action that will be triggered when the user presses the back button or the back shortcut
self.back_action = QAction(self) self.back_action = QAction(self)
self.back_action.setShortcut(QKeySequence(Qt.KeyboardModifier.AltModifier | Qt.Key.Key_Left)) self.back_action.setShortcut(QKeySequence(Qt.KeyboardModifier.AltModifier | Qt.Key.Key_Left))
@ -834,7 +834,7 @@ class CompareMany(QDialog):
elif last_previous_item in self.accepted: elif last_previous_item in self.accepted:
self.accepted.pop(last_previous_item) self.accepted.pop(last_previous_item)
# move the last previous item to the begining of the pending list # move the last previous item to the beginning of the pending list
self.ids.insert(0, last_previous_item) self.ids.insert(0, last_previous_item)
self.show_current_item() self.show_current_item()

View File

@ -1200,7 +1200,7 @@ class TagsView(QTreeView): # {{{
self.context_menu.addSeparator() self.context_menu.addSeparator()
add_show_hidden_categories() add_show_hidden_categories()
# partioning. If partitioning is active, provide a way to turn it on or # partitioning. If partitioning is active, provide a way to turn it on or
# off for this category. # off for this category.
if gprefs['tags_browser_partition_method'] != 'disable' and key is not None: if gprefs['tags_browser_partition_method'] != 'disable' and key is not None:
m = self.context_menu m = self.context_menu