summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DailymotionCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/DailymotionCom.py')
-rw-r--r--module/plugins/hoster/DailymotionCom.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/hoster/DailymotionCom.py b/module/plugins/hoster/DailymotionCom.py
index 051b09fc3..1634bb12d 100644
--- a/module/plugins/hoster/DailymotionCom.py
+++ b/module/plugins/hoster/DailymotionCom.py
@@ -10,7 +10,7 @@ from module.plugins.internal.Hoster import Hoster
def get_info(urls):
result = []
- regex = re.compile(DailymotionCom.__pattern)
+ regex = re.compile(DailymotionCom.__pattern__)
apiurl = "https://api.dailymotion.com/video/%s"
request = {'fields': "access_error,status,title"}
@@ -42,13 +42,14 @@ def get_info(urls):
class DailymotionCom(Hoster):
- __name = "DailymotionCom"
+ __name__ = "DailymotionCom"
__type__ = "hoster"
__version__ = "0.22"
__status__ = "testing"
__pattern__ = r'https?://(?:www\.)?dailymotion\.com/.*video/(?P<ID>[\w^_]+)'
- __config__ = [("quality", "Lowest;LD 144p;LD 240p;SD 384p;HQ 480p;HD 720p;HD 1080p;Highest", "Quality", "Highest")]
+ __config__ = [("activated", "bool", "Activated", True),
+ ("quality", "Lowest;LD 144p;LD 240p;SD 384p;HQ 480p;HD 720p;HD 1080p;Highest", "Quality", "Highest")]
__description__ = """Dailymotion.com hoster plugin"""
__license__ = "GPLv3"
@@ -121,7 +122,7 @@ class DailymotionCom(Hoster):
def process(self, pyfile):
self.check_info(pyfile)
- id = re.match(self.__pattern, pyfile.url).group('ID')
+ id = re.match(self.__pattern__, pyfile.url).group('ID')
self.html = self.load("http://www.dailymotion.com/embed/video/" + id)
streams = self.get_streams()