option [hashtaglist] section. fixes #5
This commit is contained in:
parent
c1503e1fd1
commit
02e61d68ad
3 changed files with 19 additions and 7 deletions
|
@ -75,10 +75,12 @@ class Main(object):
|
|||
plugins = conf[4]
|
||||
# create link to the persistent list
|
||||
cache = FeedCache(options)
|
||||
if options['hashtaglist']:
|
||||
if 'hashtaglist' in options and options['hashtaglist']:
|
||||
severalwordshashtags = codecs.open(options['hashtaglist'],
|
||||
encoding='utf-8').readlines()
|
||||
severalwordshashtags = [i.rstrip('\n') for i in severalwordshashtags]
|
||||
else:
|
||||
severalwordshashtags = []
|
||||
# reverse feed entries because most recent one should be sent as the last one in Mastodon
|
||||
for feed in feeds:
|
||||
# store the patterns by rss
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue