forked from indymedia/epicyon
Check that feeds look like feeds
parent
36893bb208
commit
58cab9e5ec
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue