mirror of
https://gitlab.com/chaica/feed2toot.git
synced 2024-11-30 15:31:09 +00:00
fix plugins
This commit is contained in:
parent
3b5e66af40
commit
5c29dfed8d
|
@ -39,6 +39,7 @@ from feed2toot.lock import LockFile
|
||||||
from feed2toot.message import build_message
|
from feed2toot.message import build_message
|
||||||
from feed2toot.message import send_message_dry_run
|
from feed2toot.message import send_message_dry_run
|
||||||
from feed2toot.message import send_message
|
from feed2toot.message import send_message
|
||||||
|
from feed2toot.plugins import activate_plugins
|
||||||
from feed2toot.removeduplicates import RemoveDuplicates
|
from feed2toot.removeduplicates import RemoveDuplicates
|
||||||
from feed2toot.rss import populate_rss
|
from feed2toot.rss import populate_rss
|
||||||
from feed2toot.sortentries import sort_entries
|
from feed2toot.sortentries import sort_entries
|
||||||
|
@ -122,7 +123,7 @@ class Main:
|
||||||
send_message(config, clioptions, options, entrytosend, finaltweet, cache, rss)
|
send_message(config, clioptions, options, entrytosend, finaltweet, cache, rss)
|
||||||
# plugins
|
# plugins
|
||||||
if plugins and entrytosend:
|
if plugins and entrytosend:
|
||||||
activate_plugins(plugins)
|
activate_plugins(plugins, finaltweet)
|
||||||
# do not forget to close cache (shelf object)
|
# do not forget to close cache (shelf object)
|
||||||
cache.close()
|
cache.close()
|
||||||
# release the lock file
|
# release the lock file
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# standard libraires imports
|
# standard libraires imports
|
||||||
import importlib
|
import importlib
|
||||||
|
|
||||||
def activate_plugins(entrytosend):
|
def activate_plugins(plugins, finaltweet):
|
||||||
'''activate plugins'''
|
'''activate plugins'''
|
||||||
for plugin in plugins:
|
for plugin in plugins:
|
||||||
capitalizedplugin = plugin.title()
|
capitalizedplugin = plugin.title()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user