diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-02-11 04:41:28 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-02-11 04:41:28 +0700 |
commit | 7d8b89163c43dfec27dab5250183e52fce838389 (patch) | |
tree | b318ce31e0b36c2df89a866c66c7461eb61bdf89 | |
parent | d777f3e81c5f9f6c7be39586703f1f076a2025a9 (diff) |
[tvplayhome] Fix video id extraction (closes #19190)
-rw-r--r-- | youtube_dl/extractor/tvplay.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/youtube_dl/extractor/tvplay.py b/youtube_dl/extractor/tvplay.py index 7c07b26bc..d82d48f94 100644 --- a/youtube_dl/extractor/tvplay.py +++ b/youtube_dl/extractor/tvplay.py @@ -493,10 +493,9 @@ class TVPlayHomeIE(InfoExtractor): webpage = self._download_webpage(url, video_id) video_id = self._search_regex( - r'data-asset-id\s*=\s*["\'](\d{5,7})\b', webpage, 'video id', - default=None) + r'data-asset-id\s*=\s*["\'](\d{5,})\b', webpage, 'video id') - if video_id: + if len(video_id) < 8: return self.url_result( 'mtg:%s' % video_id, ie=TVPlayIE.ie_key(), video_id=video_id) |