summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/VeehdCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/VeehdCom.py')
-rw-r--r--module/plugins/hoster/VeehdCom.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/module/plugins/hoster/VeehdCom.py b/module/plugins/hoster/VeehdCom.py
index 78da91020..cf206992d 100644
--- a/module/plugins/hoster/VeehdCom.py
+++ b/module/plugins/hoster/VeehdCom.py
@@ -2,13 +2,14 @@
import re
-from module.plugins.Hoster import Hoster
+from module.plugins.internal.Hoster import Hoster
class VeehdCom(Hoster):
__name__ = "VeehdCom"
__type__ = "hoster"
- __version__ = "0.23"
+ __version__ = "0.25"
+ __status__ = "testing"
__pattern__ = r'http://veehd\.com/video/\d+_\S+'
__config__ = [("filename_spaces", "bool", "Allow spaces in filename", False),
@@ -35,7 +36,7 @@ class VeehdCom(Hoster):
def download_html(self):
url = self.pyfile.url
- self.logDebug("Requesting page: %s" % url)
+ self.log_debug("Requesting page: %s" % url)
self.html = self.load(url)
@@ -58,17 +59,18 @@ class VeehdCom(Hoster):
name = m.group(1)
- # replace unwanted characters in filename
- if self.getConfig('filename_spaces'):
+ #: Replace unwanted characters in filename
+ if self.get_config('filename_spaces'):
pattern = '[^\w ]+'
else:
pattern = '[^\w.]+'
- return re.sub(pattern, self.getConfig('replacement_char'), name) + '.avi'
+ return re.sub(pattern, self.get_config('replacement_char'), name) + '.avi'
def get_file_url(self):
- """ returns the absolute downloadable filepath
+ """
+ Returns the absolute downloadable filepath
"""
if not self.html:
self.download_html()