[bliptv] Fix the resolve of lookup ID (Closes #4197)
authorNaglis Jonaitis <njonaitis@gmail.com>
Sat, 15 Nov 2014 14:56:04 +0000 (16:56 +0200)
committerNaglis Jonaitis <njonaitis@gmail.com>
Sat, 15 Nov 2014 14:56:04 +0000 (16:56 +0200)
youtube_dl/extractor/bliptv.py

index 57d17bea349a302efb0c811bc35f2158313f326a..2370c24b06eb9b9547fbc822a413405b2223ae42 100644 (file)
@@ -71,11 +71,12 @@ class BlipTVIE(SubtitlesInfoExtractor):
         mobj = re.match(self._VALID_URL, url)
         lookup_id = mobj.group('lookup_id')
 
-        # See https://github.com/rg3/youtube-dl/issues/857
+        # See https://github.com/rg3/youtube-dl/issues/857 and
+        # https://github.com/rg3/youtube-dl/issues/4197
         if lookup_id:
             info_page = self._download_webpage(
                 'http://blip.tv/play/%s.x?p=1' % lookup_id, lookup_id, 'Resolving lookup id')
-            video_id = self._search_regex(r'data-episode-id="([0-9]+)', info_page, 'video_id')
+            video_id = self._search_regex(r'config\.id\s*=\s*"([0-9]+)', info_page, 'video_id')
         else:
             video_id = mobj.group('id')