summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/VeohCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 00:35:51 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-09 00:35:51 +0100
commitfd105f8e51768ec1943cda2375bdfdbe5b0a3951 (patch)
treeccbdbe3cd23c606e8102f11ae4e0722f7e7a3227 /module/plugins/hoster/VeohCom.py
parent"New Year" Update: hook plugins (diff)
downloadpyload-fd105f8e51768ec1943cda2375bdfdbe5b0a3951.tar.xz
"New Year" Update: hoster plugins
Diffstat (limited to 'module/plugins/hoster/VeohCom.py')
-rw-r--r--module/plugins/hoster/VeohCom.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/VeohCom.py b/module/plugins/hoster/VeohCom.py
index 6dbac397b..219efa8e1 100644
--- a/module/plugins/hoster/VeohCom.py
+++ b/module/plugins/hoster/VeohCom.py
@@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class VeohCom(SimpleHoster):
__name__ = "VeohCom"
__type__ = "hoster"
- __version__ = "0.21"
+ __version__ = "0.22"
__pattern__ = r'http://(?:www\.)?veoh\.com/(tv/)?(watch|videos)/(?P<ID>v\w+)'
__config__ = [("quality", "Low;High;Auto", "Quality", "Auto")]
@@ -32,15 +32,16 @@ class VeohCom(SimpleHoster):
self.chunkLimit = -1
- def handleFree(self):
+ def handleFree(self, pyfile):
quality = self.getConfig("quality")
if quality == "Auto":
quality = ("High", "Low")
+
for q in quality:
pattern = r'"fullPreviewHash%sPath":"(.+?)"' % q
m = re.search(pattern, self.html)
if m:
- self.pyfile.name += ".mp4"
+ pyfile.name += ".mp4"
link = m.group(1).replace("\\", "")
self.download(link)
return