1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-15 22:05:39 +00:00

[dailymotion:cloud] Use idiomatic name for classmethod's first argument

This commit is contained in:
Sergey M․ 2016-02-14 13:44:23 +06:00
parent b45f2b1d6e
commit fca2e6d5a6

View file

@ -396,13 +396,13 @@ class DailymotionCloudIE(DailymotionBaseInfoExtractor):
}] }]
@classmethod @classmethod
def _extract_dmcloud_url(self, webpage): def _extract_dmcloud_url(cls, webpage):
mobj = re.search(r'<iframe[^>]+src=[\'"](%s)[\'"]' % self._VALID_EMBED_URL, webpage) mobj = re.search(r'<iframe[^>]+src=[\'"](%s)[\'"]' % cls._VALID_EMBED_URL, webpage)
if mobj: if mobj:
return mobj.group(1) return mobj.group(1)
mobj = re.search( mobj = re.search(
r'<input[^>]+id=[\'"]dmcloudUrlEmissionSelect[\'"][^>]+value=[\'"](%s)[\'"]' % self._VALID_EMBED_URL, r'<input[^>]+id=[\'"]dmcloudUrlEmissionSelect[\'"][^>]+value=[\'"](%s)[\'"]' % cls._VALID_EMBED_URL,
webpage) webpage)
if mobj: if mobj:
return mobj.group(1) return mobj.group(1)