mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-08-19 00:39:42 +02:00
fix tiktok download
This commit is contained in:
parent
6410992da9
commit
7bbc0bbce0
@ -133,6 +133,8 @@ class TikTokIE(TikTokBaseIE):
|
|||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
|
# If we only call once, we get a 403 when downlaoding the video.
|
||||||
|
webpage = self._download_webpage(url, video_id, note='Downloading video webpage')
|
||||||
webpage = self._download_webpage(url, video_id, note='Downloading video webpage')
|
webpage = self._download_webpage(url, video_id, note='Downloading video webpage')
|
||||||
json_string = self._search_regex(
|
json_string = self._search_regex(
|
||||||
r'id=\"__NEXT_DATA__\"\s+type=\"application\/json\"\s*[^>]+>\s*(?P<json_string_ld>[^<]+)',
|
r'id=\"__NEXT_DATA__\"\s+type=\"application\/json\"\s*[^>]+>\s*(?P<json_string_ld>[^<]+)',
|
||||||
|
Loading…
Reference in New Issue
Block a user