aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/feedgetter.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-01-26 18:25:38 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-01-26 18:25:38 +0100
commit1c7d27938a47ab3739400867351ef00652440217 (patch)
treed3ca6875f5d3e2fc7ae8a920486e04e72432adbb /pyaggr3g470r/feedgetter.py
parentAdded an option to choose if URL of articles behind proxies should be resolved. (diff)
downloadnewspipe-1c7d27938a47ab3739400867351ef00652440217.tar.gz
newspipe-1c7d27938a47ab3739400867351ef00652440217.tar.bz2
newspipe-1c7d27938a47ab3739400867351ef00652440217.zip
The description of the feed is stored in the database.
Diffstat (limited to 'pyaggr3g470r/feedgetter.py')
-rw-r--r--pyaggr3g470r/feedgetter.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py
index d29d3c9e..59b22c38 100644
--- a/pyaggr3g470r/feedgetter.py
+++ b/pyaggr3g470r/feedgetter.py
@@ -106,6 +106,12 @@ class FeedGetter(object):
if a_feed['entries'] == []:
return
+ # Feed informations
+ if feed.title == "":
+ feed.title = a_feed.feed.title
+ if feed.description == "":
+ feed.description = a_feed.feed.subtitle
+
articles = []
for article in a_feed['entries']:
bgstack15