projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b45f2b1
)
[dailymotion:cloud] Use idiomatic name for classmethod's first argument
author
Sergey M․
<dstftw@gmail.com>
Sun, 14 Feb 2016 07:44:23 +0000
(13:44 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 14 Feb 2016 07:44:23 +0000
(13:44 +0600)
youtube_dl/extractor/dailymotion.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/dailymotion.py
b/youtube_dl/extractor/dailymotion.py
index 6e462af6904ab5ee0915f3224f21b210d58ab931..7ae9f235987443a4a3f7ecc8cbdfef4297b37ae4 100644
(file)
--- a/
youtube_dl/extractor/dailymotion.py
+++ b/
youtube_dl/extractor/dailymotion.py
@@
-396,13
+396,13
@@
class DailymotionCloudIE(DailymotionBaseInfoExtractor):
}]
@classmethod
}]
@classmethod
- def _extract_dmcloud_url(
self
, webpage):
- mobj = re.search(r'<iframe[^>]+src=[\'"](%s)[\'"]' %
self
._VALID_EMBED_URL, webpage)
+ def _extract_dmcloud_url(
cls
, webpage):
+ mobj = re.search(r'<iframe[^>]+src=[\'"](%s)[\'"]' %
cls
._VALID_EMBED_URL, webpage)
if mobj:
return mobj.group(1)
mobj = re.search(
if mobj:
return mobj.group(1)
mobj = re.search(
- r'<input[^>]+id=[\'"]dmcloudUrlEmissionSelect[\'"][^>]+value=[\'"](%s)[\'"]' %
self
._VALID_EMBED_URL,
+ r'<input[^>]+id=[\'"]dmcloudUrlEmissionSelect[\'"][^>]+value=[\'"](%s)[\'"]' %
cls
._VALID_EMBED_URL,
webpage)
if mobj:
return mobj.group(1)
webpage)
if mobj:
return mobj.group(1)