From c3b3f3ea5c813edbe3e6941c535c78ad494244ee Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 11 Oct 2015 01:04:09 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1998 Fix https://github.com/pyload/pyload/issues/1999 Fix https://github.com/pyload/pyload/issues/2001 --- module/plugins/hoster/FilefactoryCom.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'module/plugins/hoster/FilefactoryCom.py') diff --git a/module/plugins/hoster/FilefactoryCom.py b/module/plugins/hoster/FilefactoryCom.py index b4e8aef0e..e608d6db0 100644 --- a/module/plugins/hoster/FilefactoryCom.py +++ b/module/plugins/hoster/FilefactoryCom.py @@ -11,7 +11,7 @@ def get_info(urls): h = get_url(url, just_header=True) m = re.search(r'Location: (.+)\r\n', h) - if m and not re.match(m.group(1), FilefactoryCom.__pattern): #: It's a direct link! Skipping + if m and not re.match(m.group(1), FilefactoryCom.__pattern__): #: It's a direct link! Skipping yield (url, 0, 3, url) else: #: It's a standard html page @@ -19,13 +19,14 @@ def get_info(urls): class FilefactoryCom(SimpleHoster): - __name = "FilefactoryCom" + __name__ = "FilefactoryCom" __type__ = "hoster" __version__ = "0.59" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?filefactory\.com/(file|trafficshare/\w+)/\w+' - __config__ = [("use_premium", "bool", "Use premium account if available", True)] + __config__ = [("activated", "bool", "Activated", True), + ("use_premium", "bool", "Use premium account if available", True)] __description__ = """Filefactory.com hoster plugin""" __license__ = "GPLv3" -- cgit v1.2.3