mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-11 14:18:18 +01:00
parent
57ebfca39b
commit
88afe05695
@ -1613,6 +1613,7 @@
|
|||||||
TikTokSoundIE,
|
TikTokSoundIE,
|
||||||
TikTokEffectIE,
|
TikTokEffectIE,
|
||||||
TikTokTagIE,
|
TikTokTagIE,
|
||||||
|
TiktokVMIE,
|
||||||
DouyinIE,
|
DouyinIE,
|
||||||
)
|
)
|
||||||
from .tinypic import TinyPicIE
|
from .tinypic import TinyPicIE
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
)
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
|
HEADRequest,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
join_nonempty,
|
join_nonempty,
|
||||||
LazyList,
|
LazyList,
|
||||||
@ -817,3 +818,12 @@ def _real_extract(self, url):
|
|||||||
render_data_json, video_id, transform_source=compat_urllib_parse_unquote)
|
render_data_json, video_id, transform_source=compat_urllib_parse_unquote)
|
||||||
return self._parse_aweme_video_web(
|
return self._parse_aweme_video_web(
|
||||||
traverse_obj(render_data, (..., 'aweme', 'detail'), get_all=False), url)
|
traverse_obj(render_data, (..., 'aweme', 'detail'), get_all=False), url)
|
||||||
|
|
||||||
|
|
||||||
|
class TiktokVMIE(InfoExtractor):
|
||||||
|
_VALID_URL = r'https?://vm.tiktok.com/(?P<id>\w+)'
|
||||||
|
IE_NAME = 'vm.tiktok'
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
return self.url_result(self._request_webpage(
|
||||||
|
HEADRequest(url), self._match_id(url), headers={'User-Agent': 'facebookexternalhit/1.1'}).geturl(), TikTokIE)
|
||||||
|
Loading…
Reference in New Issue
Block a user