diff options
Diffstat (limited to 'module/plugins/hoster/VkCom.py')
-rw-r--r-- | module/plugins/hoster/VkCom.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/module/plugins/hoster/VkCom.py b/module/plugins/hoster/VkCom.py index 858c0111c..762ebc092 100644 --- a/module/plugins/hoster/VkCom.py +++ b/module/plugins/hoster/VkCom.py @@ -5,16 +5,16 @@ import re -from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo +from module.plugins.internal.SimpleHoster import SimpleHoster class VkCom(SimpleHoster): __name__ = "VkCom" __type__ = "hoster" - __version__ = "0.04" + __version__ = "0.05" __status__ = "testing" - __pattern__ = r"https?://(?:www\.)?vk\.com/video_ext\.php/\?.+" + __pattern__ = r'https?://(?:www\.)?vk\.com/video_ext\.php/\?.+' __config__ = [("activated" , "bool", "Activated" , True), ("use_premium" , "bool", "Use premium account if available" , True), ("fallback" , "bool", "Fallback to free download if premium fails" , True), @@ -33,7 +33,4 @@ class VkCom(SimpleHoster): def handle_free(self, pyfile): - self.link = re.findall(self.LINK_FREE_PATTERN, self.data)[0 if self.get_config('quality') == "Low" else -1] - - -getInfo = create_getInfo(VkCom) + self.link = re.findall(self.LINK_FREE_PATTERN, self.data)[0 if self.config.get('quality') == "Low" else -1] |