diff options
author | Christopher <4Christopher@gmx.de> | 2013-02-27 13:21:13 +0100 |
---|---|---|
committer | Christopher <4Christopher@gmx.de> | 2013-02-27 14:35:46 +0100 |
commit | 7b1889af3caf854a2b4aaed32d27816402a8ef97 (patch) | |
tree | 9b6de9f3668291ec20d4c17a17e551b559da484e /module/plugins/hoster | |
parent | fixed support for films (diff) | |
download | pyload-7b1889af3caf854a2b4aaed32d27816402a8ef97.tar.xz |
little fixes
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/XvidstageCom.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/hoster/XvidstageCom.py b/module/plugins/hoster/XvidstageCom.py index 1994e40ed..38c54efec 100644 --- a/module/plugins/hoster/XvidstageCom.py +++ b/module/plugins/hoster/XvidstageCom.py @@ -37,8 +37,8 @@ def getInfo(urls): def parseFileInfo(url, getInfoMode = False): html = getURL(url) info = {"name" : url, "size" : 0, "status" : 3} - info['name'] = re.search(r'Filename:</b></td><td nowrap>(.*?)<', html).group(1) - info['size'] = re.search(r'Size:</b></td><td>.*? <small>\((\d+?) bytes\)', html).group(1) + info['name'] = re.search(r'(?:Filename|Dateiname):</b></td><td nowrap[^>]*?>(.*?)<', html).group(1) + info['size'] = re.search(r'(?:Size|Größe):</b></td><td>.*? <small>\((\d+?) bytes\)', html).group(1) if info['size'] == 0: info['status'] = 1 else: @@ -49,10 +49,9 @@ def parseFileInfo(url, getInfoMode = False): else: return info['name'], info['size'], info['status'], html - class XvidstageCom(Hoster): __name__ = 'XvidstageCom' - __version__ = '0.1.1' + __version__ = '0.2' __pattern__ = r'http://(?:www.)?xvidstage.com/(?P<id>[0-9A-Za-z]+)' __type__ = 'hoster' __description__ = """A Plugin that allows you to download files from http://xvidstage.com""" |