summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/DailymotionCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-10 17:49:14 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-10 17:49:14 +0200
commit8e15c1af88b61cebda68a3b40352bf388c2010c7 (patch)
treebd1fb40094d907ccad41b4770f947cf9cac020cf /module/plugins/hoster/DailymotionCom.py
parentMerge branch 'pr/n1997_GammaC0de' into stable (diff)
downloadpyload-8e15c1af88b61cebda68a3b40352bf388c2010c7.tar.xz
Spare code cosmetics (3)
Diffstat (limited to 'module/plugins/hoster/DailymotionCom.py')
-rw-r--r--module/plugins/hoster/DailymotionCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/DailymotionCom.py b/module/plugins/hoster/DailymotionCom.py
index 73e119c8c..051b09fc3 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,7 +42,7 @@ def get_info(urls):
class DailymotionCom(Hoster):
- __name__ = "DailymotionCom"
+ __name = "DailymotionCom"
__type__ = "hoster"
__version__ = "0.22"
__status__ = "testing"
@@ -121,7 +121,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()