0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

simplify second page fetch

Co-authored-by: Merval <merval@users.noreply.github.com>
This commit is contained in:
GreyAlien502 2020-10-27 02:20:18 +00:00 committed by GitHub
parent 7bbc0bbce0
commit 61e76c1e5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>[^<]+)',