You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yt-dlp/yt_dlp
scrat5h 9ecbbcd844 [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: #5615
2 years ago
..
compat [compat] Fix `shutils.move` in restricted ACL mode on BSD (#5309) 2 years ago
downloader [extractor/generic] Add `fragment_query` extractor arg for DASH and HLS (#5528) 2 years ago
extractor [extractor/pornhub] Remove fetch of /video/get_media for formats 2 years ago
postprocessor [cleanup] Misc 2 years ago
YoutubeDL.py Implement universal format sorting 2 years ago
__init__.py [utils] Move format sorting code into `utils` 2 years ago
__main__.py [cleanup] Misc 2 years ago
aes.py Update to ytdl-commit-de39d128 2 years ago
cache.py [jsinterp, extractor/youtube] Minor fixes 2 years ago
cookies.py [cookies] Improve `LenientSimpleCookie` (#5195) 2 years ago
dependencies.py [cleanup] Misc 2 years ago
jsinterp.py [jsinterp] Improve separating regex 2 years ago
minicurses.py [docs] Consistent use of `e.g.` (#4643) 2 years ago
options.py [cleanup] Lint and misc cleanup 2 years ago
socks.py [compat] Remove more functions 3 years ago
update.py [cleanup] Misc 2 years ago
utils.py [FormatSort] Add `mov` to `vext` 2 years ago
version.py [version] update 2 years ago
webvtt.py [webvtt] Handle premature EOF 2 years ago