|
|
@ -15,11 +15,15 @@ def update(): |
|
|
|
|
|
|
|
for x, feed in enumerate(feeds): |
|
|
|
parsed = feedparser.parse(feed) |
|
|
|
# print(parsed) |
|
|
|
if parsed: |
|
|
|
# print(f'Adding: { parsed.feed.title } ({ parsed.feed.link })') |
|
|
|
x = str(x) |
|
|
|
|
|
|
|
tmp['feeds'][x] = {} |
|
|
|
if parsed.feed.title: |
|
|
|
tmp['feeds'][x]['title'] = parsed.feed.title |
|
|
|
else: |
|
|
|
tmp['feeds'][x]['title'] = "" |
|
|
|
tmp['feeds'][x]['link'] = parsed.feed.link |
|
|
|
tmp['feeds'][x]['rss'] = parsed.entries[0].title_detail.base |
|
|
|
tmp['feeds'][x]['description'] = parsed.feed.description |
|
|
|