diff options
author | Sergey M․ <[email protected]> | 2017-08-19 19:48:20 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2017-08-19 19:48:20 +0700 |
commit | f5469da9e6e259c1690c7ef54f1da1c19f65036f (patch) | |
tree | d4ae24c904b65bd53a13a6fe7cf8141f5fa03778 /youtube_dl/extractor/laola1tv.py | |
parent | d14d9d8903a532e346dffc3b83730045f18f2c28 (diff) | |
download | youtube-dl-f5469da9e6e259c1690c7ef54f1da1c19f65036f.tar.gz youtube-dl-f5469da9e6e259c1690c7ef54f1da1c19f65036f.zip |
[laola1tv] Add support for tv.ittf.com (closes #13965)
Diffstat (limited to 'youtube_dl/extractor/laola1tv.py')
-rw-r--r-- | youtube_dl/extractor/laola1tv.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/youtube_dl/extractor/laola1tv.py b/youtube_dl/extractor/laola1tv.py index 1f91ba017..c7f813370 100644 --- a/youtube_dl/extractor/laola1tv.py +++ b/youtube_dl/extractor/laola1tv.py @@ -215,3 +215,21 @@ class Laola1TvIE(Laola1TvEmbedIE): 'formats': formats, 'is_live': is_live, } + + +class ITTFIE(InfoExtractor): + _VALID_URL = r'https?://tv\.ittf\.com/video/[^/]+/(?P<id>\d+)' + _TEST = { + 'url': 'https://tv.ittf.com/video/peng-wang-wei-matsudaira-kenta/951802', + 'only_matching': True, + } + + def _real_extract(self, url): + return self.url_result( + update_url_query('https://www.laola1.tv/titanplayer.php', { + 'videoid': self._match_id(url), + 'type': 'V', + 'lang': 'en', + 'portal': 'int', + 'customer': 1024, + }), Laola1TvEmbedIE.ie_key()) |