diff --git a/src/you_get/extractors/tiktok.py b/src/you_get/extractors/tiktok.py index 9ecc662d..2c388054 100644 --- a/src/you_get/extractors/tiktok.py +++ b/src/you_get/extractors/tiktok.py @@ -6,12 +6,10 @@ from ..common import * def tiktok_download(url, output_dir='.', merge=True, info_only=False, **kwargs): html = get_html(url, faker=True) - title = r1(r'(.*?)', html) + title = r1(r'(.*?)', html) video_id = r1(r'/video/(\d+)', url) or r1(r'musical\?id=(\d+)', html) title = '%s [%s]' % (title, video_id) - dataText = r1(r'var data = \[(.*)\] ', html) or r1(r'var data = (\{.*\})', html) - data = json.loads(dataText) - source = 'http:' + data['video']['play_addr']['url_list'][0] + source = r1(r'