diff options
author | Stefano <l.stickell@yahoo.it> | 2014-03-19 15:40:24 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-21 17:06:28 +0200 |
commit | 72f04dfee9bb78fcfa9995bcee6877b43c4ab8f7 (patch) | |
tree | 15ab921d6686e571444736d684db7f9307860ff8 | |
parent | Filestube: patterns updated (diff) | |
download | pyload-72f04dfee9bb78fcfa9995bcee6877b43c4ab8f7.tar.xz |
Zippyshare: using (?i) instead of re.I to make it work even on Python < 2.7
(cherry picked from commit e4da4c592779642a2ce1e2c361dd6d0fb7b62c1c)
-rw-r--r-- | pyload/plugins/hoster/ZippyshareCom.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/plugins/hoster/ZippyshareCom.py b/pyload/plugins/hoster/ZippyshareCom.py index 221db7104..5983627d5 100644 --- a/pyload/plugins/hoster/ZippyshareCom.py +++ b/pyload/plugins/hoster/ZippyshareCom.py @@ -17,7 +17,7 @@ class ZippyshareCom(SimpleHoster): __name__ = "ZippyshareCom" __type__ = "hoster" __pattern__ = r"(?P<HOST>http://www\d{0,2}\.zippyshare.com)/v(?:/|iew.jsp.*key=)(?P<KEY>\d+)" - __version__ = "0.45" + __version__ = "0.46" __description__ = """Zippyshare.com Download Hoster""" __author_name__ = ("spoob", "zoidberg", "stickell") __author_mail__ = ("spoob@pyload.org", "zoidberg@mujmail.cz", "l.stickell@yahoo.it") @@ -82,8 +82,7 @@ class ZippyshareCom(SimpleHoster): js = re.sub(regex + r" = ([^;]+);", '', js) js = re.sub(regex, omg, js) js = re.sub(r"document.getElementById\(\\*'dlbutton\\*'\).href\s*= ", '', js) - js = re.sub(r"(function som(e|d)Function\(\) {)|(var som(e|d)function = function\(\) {)", - '', js, flags=re.I) + js = re.sub(r"(?i)(function som(e|d)Function\(\) {)|(var som(e|d)function = function\(\) {)", '', js) url = self.js.eval(js) elif found and re.search(r"document.getElementById\(\\*'dlbutton\\*'\).href = \"", self.html): js = "\n".join(found.groups()) |