Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backups
youtube-dl
Commits
f5469da9
Unverified
Commit
f5469da9
authored
Aug 19, 2017
by
Sergey M․
Browse files
[laola1tv] Add support for tv.ittf.com (closes #13965)
parent
d14d9d89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
youtube_dl/extractor/extractors.py
youtube_dl/extractor/extractors.py
+1
-0
youtube_dl/extractor/laola1tv.py
youtube_dl/extractor/laola1tv.py
+18
-0
No files found.
youtube_dl/extractor/extractors.py
View file @
f5469da9
...
...
@@ -509,6 +509,7 @@ from .la7 import LA7IE
from
.laola1tv
import
(
Laola1TvEmbedIE
,
Laola1TvIE
,
ITTFIE
,
)
from
.lci
import
LCIIE
from
.lcp
import
(
...
...
youtube_dl/extractor/laola1tv.py
View file @
f5469da9
...
...
@@ -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
())
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment