mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-07 07:07:15 +08:00
Update tiktok.py
This commit is contained in:
parent
8236960943
commit
aac7727b54
@ -1,15 +1,18 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from youtube_dl.extractor.common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from youtube_dl.utils import (
|
from ..utils import (
|
||||||
|
compat_str,
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
str_or_none,
|
str_or_none,
|
||||||
try_get
|
try_get,
|
||||||
|
url_or_none,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class TikTokIE(InfoExtractor):
|
class TikTokIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?tiktok\.com/@.+/video/(?P<id>[0-9]+)+'
|
_VALID_URL = r'https?://(?:www\.)?tiktok\.com/@.+/video/(?P<id>[0-9]+)+'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user