summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/XVideosCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-11 01:04:09 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-11 01:04:09 +0200
commitc3b3f3ea5c813edbe3e6941c535c78ad494244ee (patch)
tree6a76a01cdf3d5fe678e02618bdbe7d0c5ce8ca8c /module/plugins/hoster/XVideosCom.py
parentFix https://github.com/pyload/pyload/issues/2002 (diff)
downloadpyload-c3b3f3ea5c813edbe3e6941c535c78ad494244ee.tar.xz
Fix https://github.com/pyload/pyload/issues/1998
Fix https://github.com/pyload/pyload/issues/1999 Fix https://github.com/pyload/pyload/issues/2001
Diffstat (limited to 'module/plugins/hoster/XVideosCom.py')
-rw-r--r--module/plugins/hoster/XVideosCom.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/XVideosCom.py b/module/plugins/hoster/XVideosCom.py
index 107193084..04fb6a57c 100644
--- a/module/plugins/hoster/XVideosCom.py
+++ b/module/plugins/hoster/XVideosCom.py
@@ -7,12 +7,13 @@ from module.plugins.internal.Hoster import Hoster
class XVideosCom(Hoster):
- __name = "XVideos.com"
+ __name__ = "XVideos.com"
__type__ = "hoster"
__version__ = "0.12"
__status__ = "testing"
__pattern__ = r'http://(?:www\.)?xvideos\.com/video(\d+)'
+ __config__ = [("activated", "bool", "Activated", True)]
__description__ = """XVideos.com hoster plugin"""
__license__ = "GPLv3"
@@ -23,6 +24,6 @@ class XVideosCom(Hoster):
site = self.load(pyfile.url)
pyfile.name = "%s (%s).flv" % (
re.search(r"<h2>([^<]+)<span", site).group(1),
- re.match(self.__pattern, pyfile.url).group(1),
+ re.match(self.__pattern__, pyfile.url).group(1),
)
self.download(urllib.unquote(re.search(r"flv_url=([^&]+)&", site).group(1)))