diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-10 22:20:53 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-10 22:20:53 +0100 |
commit | dbc915d1559a3d80787e3f79f976d15b9204fd8e (patch) | |
tree | 7d045dee4a7f942d2e97f5219239e2b4395e596d /module/plugins/hoster/NowVideoAt.py | |
parent | [FreakshareCom] Improve account (diff) | |
download | pyload-dbc915d1559a3d80787e3f79f976d15b9204fd8e.tar.xz |
[NowVideoAt] Premium support
Diffstat (limited to 'module/plugins/hoster/NowVideoAt.py')
-rw-r--r-- | module/plugins/hoster/NowVideoAt.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/module/plugins/hoster/NowVideoAt.py b/module/plugins/hoster/NowVideoAt.py index bcf3165d2..53d782d06 100644 --- a/module/plugins/hoster/NowVideoAt.py +++ b/module/plugins/hoster/NowVideoAt.py @@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class NowVideoAt(SimpleHoster): __name__ = "NowVideoAt" __type__ = "hoster" - __version__ = "0.04" + __version__ = "0.05" __pattern__ = r'http://(?:www\.)?nowvideo\.(at|ch|co|eu|sx)/(video|mobile/#/videos)/(?P<ID>\w+)' @@ -22,7 +22,8 @@ class NowVideoAt(SimpleHoster): NAME_PATTERN = r'<h4>(?P<N>.+?)<' OFFLINE_PATTERN = r'>This file no longer exists' - LINK_PATTERN = r'<source src="(.+?)"' + LINK_FREE_PATTERN = r'<source src="(.+?)"' + LINK_PREMIUM_PATTERN = r'<div id="content_player" >\s*<a href="(.+?)"' def setup(self): @@ -33,11 +34,11 @@ class NowVideoAt(SimpleHoster): def handleFree(self): self.html = self.load("http://www.nowvideo.at/mobile/video.php", get={'id': self.info['ID']}) - m = re.search(self.LINK_PATTERN, self.html) + m = re.search(self.LINK_FREE_PATTERN, self.html) if m is None: - self.error(_("Download link not found")) + self.error(_("Free download link not found")) - self.download(m.group(1), disposition=True) + self.download(m.group(1)) getInfo = create_getInfo(NowVideoAt) |