aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tele5.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-05-13 00:13:00 +0700
committerSergey M․ <dstftw@gmail.com>2019-05-13 00:13:00 +0700
commita277dd33ebc7b3a3d4a7cf603ccdbe2d9ec5d73b (patch)
treeaeeec9225f5ae88a5513d9fdb6e9b7b41f32629b /youtube_dl/extractor/tele5.py
parent0e0bfd334c59bd9a0bf4e24e88237041b7ff411d (diff)
[tele5] Improve video id extraction
Diffstat (limited to 'youtube_dl/extractor/tele5.py')
-rw-r--r--youtube_dl/extractor/tele5.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/tele5.py b/youtube_dl/extractor/tele5.py
index 0b346d7be..33a72083b 100644
--- a/youtube_dl/extractor/tele5.py
+++ b/youtube_dl/extractor/tele5.py
@@ -48,8 +48,9 @@ class Tele5IE(InfoExtractor):
display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id)
video_id = self._html_search_regex(
- r'id\s*=\s*["\']video-player["\'][^>]+data-id\s*=\s*["\'](\d+)',
- webpage, 'video id')
+ (r'id\s*=\s*["\']video-player["\'][^>]+data-id\s*=\s*["\'](\d+)',
+ r'\s+id\s*=\s*["\']player_(\d{6,})',
+ r'\bdata-id\s*=\s*["\'](\d{6,})'), webpage, 'video id')
return self.url_result(
'https://api.nexx.cloud/v3/759/videos/byid/%s' % video_id,