summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/Ev0InFetcher.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2013-07-17 03:20:29 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2013-07-17 03:20:29 +0200
commit5d6b8fdb79eb10b3b96cb265860d0d02d112af60 (patch)
tree4b11a41a91eb36b9f3cf5492392f4871bb733f43 /module/plugins/hooks/Ev0InFetcher.py
parentNew crypter plugin requested in #190 (diff)
downloadpyload-5d6b8fdb79eb10b3b96cb265860d0d02d112af60.tar.xz
fixed log api call for several plugins
Diffstat (limited to 'module/plugins/hooks/Ev0InFetcher.py')
-rw-r--r--module/plugins/hooks/Ev0InFetcher.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hooks/Ev0InFetcher.py b/module/plugins/hooks/Ev0InFetcher.py
index 5941cf38c..d29f89c2f 100644
--- a/module/plugins/hooks/Ev0InFetcher.py
+++ b/module/plugins/hooks/Ev0InFetcher.py
@@ -22,7 +22,7 @@ from module.plugins.Hook import Hook
class Ev0InFetcher(Hook):
__name__ = "Ev0InFetcher"
- __version__ = "0.2"
+ __version__ = "0.21"
__description__ = """checks rss feeds for ev0.in"""
__config__ = [("activated", "bool", "Activated", "False"),
("interval", "int", "Check interval in minutes", "10"),
@@ -73,15 +73,15 @@ class Ev0InFetcher(Hook):
if show.lower() in normalizefiletitle(item['title']) and lastfound < int(mktime(item.date_parsed)):
links = self.filterLinks(item['description'].split("<br />"))
packagename = item['title'].encode("utf-8")
- self.core.log.info("Ev0InFetcher: new episode '%s' (matched '%s')" % (packagename, show))
+ self.logInfo("Ev0InFetcher: new episode '%s' (matched '%s')" % (packagename, show))
self.core.api.addPackage(packagename, links, 1 if self.getConfig("queue") else 0)
self.setStorage("show_%s_lastfound" % show, int(mktime(item.date_parsed)))
found = True
if not found:
- #self.core.log.debug("Ev0InFetcher: no new episodes found")
+ #self.logDebug("Ev0InFetcher: no new episodes found")
pass
for show, lastfound in self.getStorage().iteritems():
if int(lastfound) > 0 and int(lastfound) + (3600*24*30) < int(time()):
self.delStorage("show_%s_lastfound" % show)
- self.core.log.debug("Ev0InFetcher: cleaned '%s' record" % show)
+ self.logDebug("Ev0InFetcher: cleaned '%s' record" % show)