HobbyistDev / yt-dlp

A youtube-dl fork with additional features and fixes
https://discord.gg/H5MNcFW63r
The Unlicense
0 stars 2 forks source link

Improve WinSports extractor #6

Closed elyse0 closed 1 year ago

elyse0 commented 1 year ago

I was implementing an extractor for https://www.multimedios.com, and I noticed that it uses the same provider (MediaStream) as WinSport.

Since you already made a pull request to yt-dlp, maybe it would be better to just add these changes to your branch n-n

Verbose log

[debug] Command-line config: ['https://www.winsports.co/videos/observa-aqui-los-goles-del-empate-entre-tolima-y-nacional-60548', '--verbose', '-F']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.11.11 [8b644025b] (source)
[debug] Lazy loading extractors is disabled
[debug] Plugins: ['SamplePluginIE', 'SamplePluginPP']
[debug] Git HEAD: a687367c9
[debug] Python 3.10.7 (CPython x86_64 64bit) - Linux-5.19.0-23-generic-x86_64-with-glibc2.36 (OpenSSL 3.0.5 5 Jul 2022, glibc 2.36)
[debug] exe versions: ffmpeg N-108931-g4dda3b1653-20221104 (setts), ffprobe N-108931-g4dda3b1653-20221104, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, certifi-2022.09.24, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1727 extractors
[debug] [WinSportsVideo] Extracting URL: https://www.winsports.co/videos/observa-aqui-los-goles-del-empate-entre-tolima-y-nacional-60548
[WinSportsVideo] observa-aqui-los-goles-del-empate-entre-tolima-y-nacional: Downloading webpage
[debug] [MediaStream] Extracting URL: https://mdstrm.com/embed/62dcb875ef12a5526790b552
[MediaStream] 62dcb875ef12a5526790b552: Downloading webpage
[MediaStream] 62dcb875ef12a5526790b552: Downloading m3u8 information
[MediaStream] 62dcb875ef12a5526790b552: Downloading MPD manifest
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for 62dcb875ef12a5526790b552:
ID       EXT RESOLUTION FPS │   TBR PROTO │ VCODEC        VBR ACODEC     ABR ASR MORE INFO
─────────────────────────────────────────────────────────────────────────────────────────────────────
f1-a1-x3 m4a audio only     │   94k dash  │ audio only        mp4a.40.2  94k 44k DASH audio, m4a_dash
1        mp4 unknown        │       https │ unknown           unknown
797      mp4 426x240        │  797k m3u8  │ avc1.4d0015  797k mp4a.40.5   0k
f1-v1-x3 mp4 426x240     30 │  797k dash  │ avc1.4d4015  797k video only         DASH video, mp4_dash
1199     mp4 640x360        │ 1199k m3u8  │ avc1.4d001e 1199k mp4a.40.5   0k
f2-v1-x3 mp4 640x360     30 │ 1199k dash  │ avc1.4d401e 1199k video only         DASH video, mp4_dash
1802     mp4 854x480        │ 1802k m3u8  │ avc1.4d001f 1802k mp4a.40.5   0k
f3-v1-x3 mp4 854x480     30 │ 1802k dash  │ avc1.4d401f 1802k video only         DASH video, mp4_dash
3924     mp4 1280x720       │ 3924k m3u8  │ avc1.4d0020 3924k mp4a.40.5   0k
f4-v1-x3 mp4 1280x720    60 │ 3924k dash  │ avc1.4d4020 3924k video only         DASH video, mp4_dash