diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-26 18:48:57 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-26 18:48:57 +0100 |
commit | 24bf61533574a5ff81559d60627a7a9b2a926696 (patch) | |
tree | 9bb5cc5f0010c95233f04856afce23925df056d8 | |
parent | [LomafileCom] Mark dead (diff) | |
download | pyload-24bf61533574a5ff81559d60627a7a9b2a926696.tar.xz |
[NowVideoSx] Fixup
-rw-r--r-- | module/plugins/accounts/NowVideoSx.py (renamed from module/plugins/accounts/NowVideoAt.py) | 10 | ||||
-rw-r--r-- | module/plugins/hoster/NowVideoSx.py | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/accounts/NowVideoAt.py b/module/plugins/accounts/NowVideoSx.py index 234984b6b..e2dcaba12 100644 --- a/module/plugins/accounts/NowVideoAt.py +++ b/module/plugins/accounts/NowVideoSx.py @@ -7,10 +7,10 @@ from time import gmtime, mktime, strptime from module.plugins.Account import Account -class NowVideoAt(Account): - __name__ = "NowVideoAt" +class NowVideoSx(Account): + __name__ = "NowVideoSx" __type__ = "account" - __version__ = "0.01" + __version__ = "0.02" __description__ = """NowVideo.at account plugin""" __license__ = "GPLv3" @@ -25,7 +25,7 @@ class NowVideoAt(Account): trafficleft = -1 premium = None - html = req.load("http://www.nowvideo.at/premium.php") + html = req.load("http://www.nowvideo.sx/premium.php") m = re.search(self.VALID_UNTIL_PATTERN, html) if m: @@ -49,7 +49,7 @@ class NowVideoAt(Account): def login(self, user, data, req): - html = req.load("http://www.nowvideo.at/login.php", + html = req.load("http://www.nowvideo.sx/login.php", post={'user': user, 'pass': data['password']}) if ">Invalid login details" is html: diff --git a/module/plugins/hoster/NowVideoSx.py b/module/plugins/hoster/NowVideoSx.py index b59bd79da..d0777ca4b 100644 --- a/module/plugins/hoster/NowVideoSx.py +++ b/module/plugins/hoster/NowVideoSx.py @@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class NowVideoSx(SimpleHoster): __name__ = "NowVideoSx" __type__ = "hoster" - __version__ = "0.07" + __version__ = "0.08" __pattern__ = r'http://(?:www\.)?nowvideo\.(at|ch|co|eu|sx)/(video|mobile/#/videos)/(?P<ID>\w+)' @@ -17,7 +17,7 @@ class NowVideoSx(SimpleHoster): __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - URL_REPLACEMENTS = [(__pattern__ + ".*", r'http://www.nowvideo.at/video/\g<ID>')] + URL_REPLACEMENTS = [(__pattern__ + ".*", r'http://www.nowvideo.sx/video/\g<ID>')] NAME_PATTERN = r'<h4>(?P<N>.+?)<' OFFLINE_PATTERN = r'>This file no longer exists' @@ -32,7 +32,7 @@ class NowVideoSx(SimpleHoster): def handleFree(self): - self.html = self.load("http://www.nowvideo.at/mobile/video.php", get={'id': self.info['pattern']['ID']}) + self.html = self.load("http://www.nowvideo.sx/mobile/video.php", get={'id': self.info['pattern']['ID']}) m = re.search(self.LINK_FREE_PATTERN, self.html) if m is None: |