projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d777f3e
)
[tvplayhome] Fix video id extraction (closes #19190)
author
Sergey M․
<dstftw@gmail.com>
Sun, 10 Feb 2019 21:41:28 +0000
(
04:41
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 10 Feb 2019 21:41:28 +0000
(
04:41
+0700)
youtube_dl/extractor/tvplay.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tvplay.py
b/youtube_dl/extractor/tvplay.py
index 7c07b26bc0ef3f3dda987ef32296145cf203870c..d82d48f94ecc026629479d84aa8ca513eaf0db26 100644
(file)
--- 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)