Skip to content

Commit

Permalink
simplify second page fetch
Browse files Browse the repository at this point in the history
Co-authored-by: Merval <[email protected]>
  • Loading branch information
GreyAlien502 and merval authored Oct 27, 2020
1 parent 7bbc0bb commit 61e76c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dlc/extractor/tiktok.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def _real_extract(self, 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')
self._download_webpage(url, video_id)
webpage = self._download_webpage(url, video_id, note='Downloading video webpage')
json_string = self._search_regex(
r'id=\"__NEXT_DATA__\"\s+type=\"application\/json\"\s*[^>]+>\s*(?P<json_string_ld>[^<]+)',
Expand Down

0 comments on commit 61e76c1

Please sign in to comment.