diff options
author | 2015-04-13 08:21:50 +0200 | |
---|---|---|
committer | 2015-04-13 08:21:50 +0200 | |
commit | 486adc1874e463b1563ad2394b216faff388b10d (patch) | |
tree | 58009056cb67e35930d49a9dd6af45adf6a8d434 /pyload/plugin/hoster/FilefactoryCom.py | |
parent | Fix https://github.com/pyload/pyload/issues/1349 (diff) | |
download | pyload-486adc1874e463b1563ad2394b216faff388b10d.tar.xz |
Prepare plugins to merging from stable
Diffstat (limited to 'pyload/plugin/hoster/FilefactoryCom.py')
-rw-r--r-- | pyload/plugin/hoster/FilefactoryCom.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/hoster/FilefactoryCom.py b/pyload/plugin/hoster/FilefactoryCom.py index 85d014e1e..c6b857307 100644 --- a/pyload/plugin/hoster/FilefactoryCom.py +++ b/pyload/plugin/hoster/FilefactoryCom.py @@ -12,23 +12,23 @@ def getInfo(urls): for url in urls: h = getURL(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 yield parseFileInfo(FilefactoryCom, url, getURL(url)) class FilefactoryCom(SimpleHoster): - __name = "FilefactoryCom" - __type = "hoster" - __version = "0.54" + __name__ = "FilefactoryCom" + __type__ = "hoster" + __version__ = "0.54" - __pattern = r'https?://(?:www\.)?filefactory\.com/(file|trafficshare/\w+)/\w+' - __config = [("use_premium", "bool", "Use premium account if available", True)] + __pattern__ = r'https?://(?:www\.)?filefactory\.com/(file|trafficshare/\w+)/\w+' + __config__ = [("use_premium", "bool", "Use premium account if available", True)] - __description = """Filefactory.com hoster plugin""" - __license = "GPLv3" - __authors = [("stickell", "l.stickell@yahoo.it"), + __description__ = """Filefactory.com hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("stickell", "l.stickell@yahoo.it"), ("Walter Purcaro", "vuolter@gmail.com")] |