diff options
author | Stefano <l.stickell@yahoo.it> | 2014-01-04 18:28:45 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-01-04 18:28:45 +0100 |
commit | 561ed2890ec6c4512badcf5ffd3758bc6dafb48d (patch) | |
tree | 96a36fc214571328121f6e561ec0d813de1ac421 /module/plugins/hoster/CloudzerNet.py | |
parent | StreamcloudEu: increased version number after (diff) | |
download | pyload-561ed2890ec6c4512badcf5ffd3758bc6dafb48d.tar.xz |
CloudzerNet: improved getInfo
See #185
Diffstat (limited to 'module/plugins/hoster/CloudzerNet.py')
-rw-r--r-- | module/plugins/hoster/CloudzerNet.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/module/plugins/hoster/CloudzerNet.py b/module/plugins/hoster/CloudzerNet.py index e95f90792..28c4dc6b1 100644 --- a/module/plugins/hoster/CloudzerNet.py +++ b/module/plugins/hoster/CloudzerNet.py @@ -13,10 +13,8 @@ def getInfo(urls): if 'Location: http://cloudzer.net/404' in header: file_info = (url, 0, 1, url) else: - if url.endswith('/'): - api_data = getURL(url + 'status') - else: - api_data = getURL(url + '/status') + fid = re.search(CloudzerNet.__pattern__, url).group('ID') + api_data = getURL('http://cloudzer.net/file/%s/status' % fid) name, size = api_data.splitlines() size = parseFileSize(size) file_info = (name, size, 2, url) @@ -27,7 +25,7 @@ class CloudzerNet(SimpleHoster): __name__ = "CloudzerNet" __type__ = "hoster" __pattern__ = r"http://(www\.)?(cloudzer\.net/file/|clz\.to/(file/)?)(?P<ID>\w+).*" - __version__ = "0.03" + __version__ = "0.04" __description__ = """Cloudzer.net hoster plugin""" __author_name__ = ("gs", "z00nx", "stickell") __author_mail__ = ("I-_-I-_-I@web.de", "z00nx0@gmail.com", "l.stickell@yahoo.it") |