summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-08-27 18:59:28 +0700
committerSergey M․ <dstftw@gmail.com>2014-08-27 18:59:28 +0700
commit071a236c5a906b43f1e10f8fd80ba34b02130604 (patch)
tree77a5f256174d2ba87103bd1b278e91a5a83c5353
parent10437550f4307ce913be789ec5add58ba451fdd6 (diff)
downloadyoutube-dl-071a236c5a906b43f1e10f8fd80ba34b02130604.tar.gz
youtube-dl-071a236c5a906b43f1e10f8fd80ba34b02130604.tar.xz
youtube-dl-071a236c5a906b43f1e10f8fd80ba34b02130604.zip
[yahoo] Add one more pattern for content id
-rw-r--r--youtube_dl/extractor/yahoo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py
index 0e3b33b16..3ab6017cd 100644
--- a/youtube_dl/extractor/yahoo.py
+++ b/youtube_dl/extractor/yahoo.py
@@ -71,7 +71,8 @@ class YahooIE(InfoExtractor):
         if items_json is None:
             CONTENT_ID_REGEXES = [
                 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')
             video_id = long_id