aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-02-04 20:20:26 -0500
committerJesús <heckyel@hyperbola.info>2020-02-04 20:20:26 -0500
commit8ce14267858a6ec60cd86d22f086d43067b1fd9c (patch)
tree07de970c0fcee6abf35b6d478060ebe56b6aab94
parentee2252cf5590f758c2d469111c818e7229907634 (diff)
downloadlibretube-8ce14267858a6ec60cd86d22f086d43067b1fd9c.tar.lz
libretube-8ce14267858a6ec60cd86d22f086d43067b1fd9c.tar.xz
libretube-8ce14267858a6ec60cd86d22f086d43067b1fd9c.zip
pep8
-rw-r--r--plugins/another_read_more_link/another_read_more_link.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/another_read_more_link/another_read_more_link.py b/plugins/another_read_more_link/another_read_more_link.py
index 8778756..ce3a667 100644
--- a/plugins/another_read_more_link/another_read_more_link.py
+++ b/plugins/another_read_more_link/another_read_more_link.py
@@ -55,12 +55,14 @@ def insert_read_more_link(instance):
instance._summary = summary
instance.has_summary = True
+
def run_plugin(generators):
for generator in generators:
if isinstance(generator, ArticlesGenerator):
for article in generator.articles:
insert_read_more_link(article)
+
def register():
try:
signals.all_generators_finalized.connect(run_plugin)