Check that feeds look like feeds

main
Bob Mottram 2020-10-03 23:20:21 +01:00
parent 36893bb208
commit 58cab9e5ec
1 changed files with 5 additions and 0 deletions

View File

@ -200,6 +200,11 @@ def getRSSFromSubscriptions(session, subscriptionsFilename: str) -> {}:
rssFeed = fp.readlines()
result = {}
for url in rssFeed:
url = url.strip()
if '://' not in url:
continue
if url.startswith('#'):
continue
result = dict(result.items() + getRSS(session, url).items())
sortedResult = OrderedDict(sorted(result.items(), reverse=False))
return sortedResult