1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 16:36:48 +00:00

[yahoo] Add one more pattern for content id

This commit is contained in:
Sergey M․ 2014-08-27 18:59:28 +07:00
parent 10437550f4
commit 071a236c5a

View File

@ -71,7 +71,8 @@ class YahooIE(InfoExtractor):
if items_json is None: if items_json is None:
CONTENT_ID_REGEXES = [ CONTENT_ID_REGEXES = [
r'YUI\.namespace\("Media"\)\.CONTENT_ID\s*=\s*"([^"]+)"', r'YUI\.namespace\("Media"\)\.CONTENT_ID\s*=\s*"([^"]+)"',
r'root\.App\.Cache\.context\.videoCache\.curVideo = \{"([^"]+)"' r'root\.App\.Cache\.context\.videoCache\.curVideo = \{"([^"]+)"',
r'"first_videoid"\s*:\s*"([^"]+)"',
] ]
long_id = self._search_regex(CONTENT_ID_REGEXES, webpage, 'content ID') long_id = self._search_regex(CONTENT_ID_REGEXES, webpage, 'content ID')
video_id = long_id video_id = long_id