summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/DailymotionCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hoster/DailymotionCom.py')
-rw-r--r--pyload/plugin/hoster/DailymotionCom.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugin/hoster/DailymotionCom.py b/pyload/plugin/hoster/DailymotionCom.py
index c212fa872..4fb007b50 100644
--- a/pyload/plugin/hoster/DailymotionCom.py
+++ b/pyload/plugin/hoster/DailymotionCom.py
@@ -10,7 +10,7 @@ from pyload.plugin.Hoster import Hoster
def getInfo(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"}
@@ -38,16 +38,16 @@ def getInfo(urls):
class DailymotionCom(Hoster):
- __name__ = "DailymotionCom"
- __type__ = "hoster"
- __version__ = "0.20"
+ __name = "DailymotionCom"
+ __type = "hoster"
+ __version = "0.20"
- __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")]
+ __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")]
- __description__ = """Dailymotion.com hoster plugin"""
- __license__ = "GPLv3"
- __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
+ __description = """Dailymotion.com hoster plugin"""
+ __license = "GPLv3"
+ __authors = [("Walter Purcaro", "vuolter@gmail.com")]
def setup(self):
@@ -116,7 +116,7 @@ class DailymotionCom(Hoster):
def process(self, pyfile):
self.checkInfo(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, decode=True)
streams = self.getStreams()