mirror of https://github.com/yt-dlp/yt-dlp
[extractor/pornhub] Remove fetch of /video/get_media for formats
Previously URLs that contained `/video/get_media` returned JSON with available formats. Some time ago Pornhub seem to removed this endpoint and has started to return `HTTP Error 403: Forbidden`, see #4298. Nowadays it seem to serve originally requested html page which, of course, cannot be parsed with JSON parser. yt-dlp produced WARNING: ``` Failed to parse JSON: Expecting value in '': line 1 column 1 (char 0). ``` Since we are already getting format of the video by other means (`mpd` or `m3u8`) this change removes fetching of URLs that don't provide value to us anymore. Fixes: #5615pull/5618/head
parent
6887f87208
commit
9ecbbcd844
Loading…
Reference in New Issue