diff --git a/src/you_get/extractors/tiktok.py b/src/you_get/extractors/tiktok.py index d1069fcc..33e1f11e 100644 --- a/src/you_get/extractors/tiktok.py +++ b/src/you_get/extractors/tiktok.py @@ -23,7 +23,8 @@ def tiktok_download(url, output_dir='.', merge=True, info_only=False, **kwargs): } html = getHttps(host, url, headers=headers) - data = r1(r'window\[\'SIGI_STATE\'\]=(.*?);window\[\'SIGI_RETRY\'\]', html) + data = r1(r'window\[\'SIGI_STATE\'\]=(.*?);window\[\'SIGI_RETRY\'\]', html) or \ + r1(r'', html) info = json.loads(data) downloadAddr = info['ItemModule'][vid]['video']['downloadAddr'] author = info['ItemModule'][vid]['author'] # same as uniqueId