[common:jwplayer] Improve jwplayer extraction and parsing (#31000)
authordirkf <fieldhouse@gmx.net>
Fri, 11 Nov 2022 00:49:13 +0000 (00:49 +0000)
committerGitHub <noreply@github.com>
Fri, 11 Nov 2022 00:49:13 +0000 (00:49 +0000)
commit604762a9f8fa21de3f7349bd612c4f34941a5d20
treedabc39aad3c5e044bca8891c42eab795ad423dc1
parent47e70fff8ba3de769a31fab0b3572162094733f7
[common:jwplayer] Improve jwplayer extraction and parsing (#31000)

* don't crash parser if jwplayer_data is invalid (empty, or no formats)
* use `label` in `sources[n]` as `format_id`
* relax `jwplayer().setup(...)` RE (also rework PR #27274 enhancement)
* detect more manifest formats in _parse_jwplayer_formats() (from PR #29596)
* improve metadata extraction (from PR #25433)
* remember URLs in a set
* use parse_resolution() in format
* extract filesize in format (from yt-dlp)

Co-authored-by: kikuyan <kikuyan@users.noreply.github.com>
Co-authored-by: martin54 <martin54@users.noreply.github.com>
youtube_dl/extractor/common.py