From 3d8d44c7b1b4b4341554b22f9cde199c9fde71c0 Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Wed, 26 Oct 2016 16:46:28 +0100 Subject: [PATCH] [tvp] improve video id extraction(closes #10585) --- youtube_dl/extractor/tvp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/tvp.py b/youtube_dl/extractor/tvp.py index 2abfb78307..2dbbc2ca7c 100644 --- a/youtube_dl/extractor/tvp.py +++ b/youtube_dl/extractor/tvp.py @@ -69,7 +69,8 @@ def _real_extract(self, url): webpage = self._download_webpage(url, page_id) video_id = self._search_regex([ r']+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,