summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/VeehdCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:25:41 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:25:41 +0200
commit5060e4c6374a5116d0d8b02528f910f8c5f8bcf9 (patch)
treeb3f80dbd9e759747f9c2acb60f614c5daa7af69e /module/plugins/hoster/VeehdCom.py
parentFix class definition (diff)
downloadpyload-5060e4c6374a5116d0d8b02528f910f8c5f8bcf9.tar.xz
Fix code indentation, some bad whitespaces and missing authors + use 'not' instead 'is None' + replace __pattern__'s r" with r' + other minor cosmetics
Diffstat (limited to 'module/plugins/hoster/VeehdCom.py')
-rw-r--r--module/plugins/hoster/VeehdCom.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/VeehdCom.py b/module/plugins/hoster/VeehdCom.py
index 22fc4b207..fd804d3f9 100644
--- a/module/plugins/hoster/VeehdCom.py
+++ b/module/plugins/hoster/VeehdCom.py
@@ -5,12 +5,12 @@ from module.plugins.Hoster import Hoster
class VeehdCom(Hoster):
- __name__ = 'VeehdCom'
- __type__ = 'hoster'
+ __name__ = "VeehdCom"
+ __type__ = "hoster"
__pattern__ = r'http://veehd\.com/video/\d+_\S+'
__config__ = [("filename_spaces", "bool", "Allow spaces in filename", False),
("replacement_char", "str", "Filename replacement character", "_")]
- __version__ = '0.23'
+ __version__ = "0.23"
__description__ = """Veehd.com hoster plugin"""
__author_name__ = "cat"
__author_mail__ = "cat@pyload"
@@ -36,7 +36,7 @@ class VeehdCom(Hoster):
self.html = self.load(url)
def file_exists(self):
- if self.html is None:
+ if not self.html:
self.download_html()
if '<title>Veehd</title>' in self.html:
@@ -44,7 +44,7 @@ class VeehdCom(Hoster):
return True
def get_file_name(self):
- if self.html is None:
+ if not self.html:
self.download_html()
match = re.search(r'<title[^>]*>([^<]+) on Veehd</title>', self.html)
@@ -65,7 +65,7 @@ class VeehdCom(Hoster):
def get_file_url(self):
""" returns the absolute downloadable filepath
"""
- if self.html is None:
+ if not self.html:
self.download_html()
match = re.search(r'<embed type="video/divx" src="(http://([^/]*\.)?veehd\.com/dl/[^"]+)"',