Skip to content

Commit

Permalink
Change search of feeds description
Browse files Browse the repository at this point in the history
  • Loading branch information
nvdaes committed Oct 11, 2020
1 parent 6a2844f commit 5db3b47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions addon/globalPlugins/readFeeds/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,12 +668,13 @@ def getArticleDescription(self, index=None):
if index is None: index = self._index
description = None
try:
description = self._articles[index].find(self.buildTag("content", self.ns)).text
if description is not None:
return description
if self.getFeedType() == u'rss':
description = self._articles[index].find(self.buildTag("description", self.ns)).text
elif self.getFeedType() == 'atom':
description = self._articles[index].find(self.buildTag("summary", self.ns)).text
if description is None:
description = self._articles[index].find(self.buildTag("content", self.ns)).text
return description
except:
return None
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description" : _("""Add-on for using NVDA as a feed reader."""),
# version
"addon_version" : "10.9-dev",
"addon_version" : "10.10-dev",
# Author(s)
"addon_author" : u"Noelia Ruiz Martínez <[email protected]>, Mesar Hameed <[email protected]>",
# URL for the add-on documentation support
Expand Down

0 comments on commit 5db3b47

Please sign in to comment.