[yahoo] Add one more pattern for content id
authorSergey M․ <dstftw@gmail.com>
Wed, 27 Aug 2014 11:59:28 +0000 (18:59 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 27 Aug 2014 11:59:28 +0000 (18:59 +0700)
youtube_dl/extractor/yahoo.py

index 0e3b33b1652fe1242b36cb79d131acb6694066da..3ab6017cdb51a3eaef6a3a1686719fba714780dd 100644 (file)
@@ -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