Browse Source

[tvp] improve video id extraction(closes #10585)

totalwebcasting
Remita Amine 8 years ago
parent
commit
3d8d44c7b1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/tvp.py

+ 2
- 1
youtube_dl/extractor/tvp.py View File

@ -69,7 +69,8 @@ class TVPIE(InfoExtractor):
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,


Loading…
Cancel
Save