diff options
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) |