mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-24 08:45:27 +00:00
[bliptv] Fix the resolve of lookup ID (Closes #4197)
This commit is contained in:
parent
e2548b5b25
commit
8caa0c9779
1 changed files with 3 additions and 2 deletions
|
@ -71,11 +71,12 @@ class BlipTVIE(SubtitlesInfoExtractor):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
lookup_id = mobj.group('lookup_id')
|
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:
|
if lookup_id:
|
||||||
info_page = self._download_webpage(
|
info_page = self._download_webpage(
|
||||||
'http://blip.tv/play/%s.x?p=1' % lookup_id, lookup_id, 'Resolving lookup id')
|
'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:
|
else:
|
||||||
video_id = mobj.group('id')
|
video_id = mobj.group('id')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue