aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tvp.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-10-26 16:46:28 +0100
committerRemita Amine <remitamine@gmail.com>2016-10-26 16:47:22 +0100
commit3d8d44c7b1b4b4341554b22f9cde199c9fde71c0 (patch)
tree7e14de107831b5e30f4bf569cb42a3cd477070c6 /youtube_dl/extractor/tvp.py
parent88839f4380106984304a7ba25ab3780f624e435e (diff)
[tvp] improve video id extraction(closes #10585)
Diffstat (limited to 'youtube_dl/extractor/tvp.py')
-rw-r--r--youtube_dl/extractor/tvp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/tvp.py b/youtube_dl/extractor/tvp.py
index 2abfb7830..2dbbc2ca7 100644
--- a/youtube_dl/extractor/tvp.py
+++ b/youtube_dl/extractor/tvp.py
@@ -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,