mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 00:00:48 +01:00
[laola1tv] Add support for tv.ittf.com (closes #13965)
This commit is contained in:
parent
d14d9d8903
commit
f5469da9e6
@ -509,6 +509,7 @@
|
|||||||
from .laola1tv import (
|
from .laola1tv import (
|
||||||
Laola1TvEmbedIE,
|
Laola1TvEmbedIE,
|
||||||
Laola1TvIE,
|
Laola1TvIE,
|
||||||
|
ITTFIE,
|
||||||
)
|
)
|
||||||
from .lci import LCIIE
|
from .lci import LCIIE
|
||||||
from .lcp import (
|
from .lcp import (
|
||||||
|
@ -215,3 +215,21 @@ def _real_extract(self, url):
|
|||||||
'formats': formats,
|
'formats': formats,
|
||||||
'is_live': is_live,
|
'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())
|
||||||
|
Loading…
Reference in New Issue
Block a user