Skip to content

Commit

Permalink
[tvp] improve video id extraction(closes #10585)
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Oct 26, 2016
1 parent 88839f4 commit 3d8d44c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/tvp.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def _real_extract(self, url):
webpage = self._download_webpage(url, page_id)
video_id = self._search_regex([
r'<iframe[^>]+src="[^"]*?object_id=(\d+)',
"object_id\s*:\s*'(\d+)'"], webpage, 'video id')
r"object_id\s*:\s*'(\d+)'",
r'data-video-id="(\d+)"'], webpage, 'video id', default=page_id)
return {
'_type': 'url_transparent',
'url': 'tvp:' + video_id,
Expand Down

0 comments on commit 3d8d44c

Please sign in to comment.