aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/crawler.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/pyaggr3g470r/crawler.py b/pyaggr3g470r/crawler.py
index 6bf216f3..05139483 100644
--- a/pyaggr3g470r/crawler.py
+++ b/pyaggr3g470r/crawler.py
@@ -88,21 +88,23 @@ def parse_feed(user, feed):
feed.last_error = ""
# Feed informations
- if feed.title == "":
- try:
- feed.title = a_feed.feed.title
- except:
- feed.title = "No title"
+ try:
+ feed.title = a_feed.feed.title
+ except:
+ feed.title = "No title"
if feed.link == "":
try:
feed.link = a_feed.feed.link
except:
feed.link = ""
- if feed.description == "":
- try:
- feed.description = a_feed.feed.subtitle
- except:
- feed.description = ""
+ try:
+ feed.description = a_feed.feed.subtitle
+ except:
+ feed.description = ""
+ try:
+ feed.icon = a_feed.feed.image.href
+ except:
+ feed.icon = ""
db.session.commit()
articles = []
bgstack15