summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/DailymotionCom.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-07-22 20:50:34 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-07-22 21:20:06 +0200
commitaaaf5a4cddec894aacd7400c59a9f2f5e710362f (patch)
tree9d9e89aff86598b3ffcc86117abd554b193e28b5 /pyload/plugins/hoster/DailymotionCom.py
parentimplemented media type filter (diff)
downloadpyload-aaaf5a4cddec894aacd7400c59a9f2f5e710362f.tar.xz
Fixed PEP 8 violations in Hosters
(cherry picked from commit 2edeee0532ec6d6b4b26fd045a5971f67ca455da) Conflicts: pyload/plugins/hoster/BasePlugin.py pyload/plugins/hoster/MultishareCz.py pyload/plugins/hoster/NetloadIn.py pyload/plugins/hoster/PremiumizeMe.py pyload/plugins/hoster/RapidshareCom.py
Diffstat (limited to 'pyload/plugins/hoster/DailymotionCom.py')
-rw-r--r--pyload/plugins/hoster/DailymotionCom.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/pyload/plugins/hoster/DailymotionCom.py b/pyload/plugins/hoster/DailymotionCom.py
index 1b411393d..ab8ff7910 100644
--- a/pyload/plugins/hoster/DailymotionCom.py
+++ b/pyload/plugins/hoster/DailymotionCom.py
@@ -5,6 +5,7 @@ import re
from urllib import unquote
from module.plugins.Hoster import Hoster
+
class DailymotionCom(Hoster):
__name__ = 'DailymotionCom'
__type__ = 'hoster'
@@ -22,12 +23,13 @@ class DailymotionCom(Hoster):
r'<span class="title foreground" title="(.*?)">',
r'"(?:vs_videotitle|videoTitle|dm_title|ss_mediaTitle)": "(.*?)"'):
filename = re.search(pattern, html)
- if filename is not None: break
+ if filename is not None:
+ break
else:
self.fail("Unable to find file name")
- pyfile.name = filename.group(1)+'.mp4'
- self.logDebug('Filename='+pyfile.name)
+ pyfile.name = filename.group(1) + '.mp4'
+ self.logDebug('Filename=' + pyfile.name)
allLinksInfo = re.search(r'"sequence":"(.*?)"', html)
self.logDebug(allLinksInfo.groups())
allLinksInfo = unquote(allLinksInfo.group(1))
@@ -44,4 +46,4 @@ class DailymotionCom(Hoster):
def getQuality(self, quality, data):
link = re.search('"' + quality + '":"(http:[^<>"\']+)"', data)
if link is not None:
- return link.group(1).replace('\\','') \ No newline at end of file
+ return link.group(1).replace('\\', '')