diff --git a/session.py b/session.py index b9275144..832e6c57 100644 --- a/session.py +++ b/session.py @@ -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