Skip to content

Commit

Permalink
[tvplayhome] Fix video id extraction (closes #19190)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and meunierd committed Dec 27, 2019
1 parent 18b2fce commit 39fbd01
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions youtube_dl/extractor/tvplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,9 @@ def _real_extract(self, url):
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)

Expand Down

0 comments on commit 39fbd01

Please sign in to comment.