mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-08-20 14:16:46 +00:00
@@ -702,7 +702,7 @@ class TikTokBaseIE(InfoExtractor):
|
||||
|
||||
|
||||
class TikTokIE(TikTokBaseIE):
|
||||
_VALID_URL = r'https?://www\.tiktok\.com/(?:embed|@(?P<user_id>[\w\.-]+)?/video)/(?P<id>\d+)'
|
||||
_VALID_URL = r'https?://www\.tiktokv?\.com/(?:embed|(?:share|@(?P<user_id>[\w\.-]+)?)/video)/(?P<id>\d+)'
|
||||
_EMBED_REGEX = [rf'<(?:script|iframe)[^>]+\bsrc=(["\'])(?P<url>{_VALID_URL})']
|
||||
|
||||
_TESTS = [{
|
||||
@@ -976,6 +976,15 @@ class TikTokIE(TikTokBaseIE):
|
||||
# Auto-captions available
|
||||
'url': 'https://www.tiktok.com/@hankgreen1/video/7047596209028074758',
|
||||
'only_matching': True,
|
||||
}, {
|
||||
'url': 'https://www.tiktokv.com/share/video/7668090902816017671/',
|
||||
'only_matching': True,
|
||||
}, {
|
||||
'url': 'https://www.tiktok.com/share/video/7668090902816017671/',
|
||||
'only_matching': True,
|
||||
}, {
|
||||
'url': 'https://www.tiktok.com/@/video/7668090902816017671/',
|
||||
'only_matching': True,
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
|
||||
Reference in New Issue
Block a user