yt-dlp / yt-dlp

A feature-rich command-line audio/video downloader
https://discord.gg/H5MNcFW63r
The Unlicense
88.94k stars 6.89k forks source link

Match-TV Russia #8052

Open Cryosim opened 1 year ago

Cryosim commented 1 year ago

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Checklist

Region

Russia

Example URLs

https://matchtv.ru/biathlon/matchtvvideo_NI1938496_translation_Letnij_biatlon_Alfa_Bank_Kubok_Sodruzhestva_Sprint_Muzhchiny

Provide a description that is worded well enough to be understood

Hi. Can't download video from the sport channel Match tv. I watch in the browser, link was set to https://bl.video.matchtv.ru/media/playlist/api_free_6b1c8cc6a90843ff95ad6a511a3bc56c/17_851765/1080/28f467206d10afe4664f3bd2944e31f4/4849755248.m3u8

If i send this url to the yd-dlp, download only 44 mb part.

Provide verbose output that clearly demonstrates the problem

Complete Verbose Output

"E:\yt-dlp\yt-dlp.exe" -N 5 -o E:\sport\test.mkv https://matchtv.ru/biathlon/matchtvvideo_NI1938496_translation_Letnij_biatlon_Alfa_Bank_Kubok_Sodruzhestva_Sprint_Muzhchiny
[generic] Extracting URL: https://matchtv.ru/biathlon/matchtvvideo_NI1938496_translation_Letnij_biatlon_Alfa_Bank_Kubok_Sod...tva_Sprint_Muzhchiny
[generic] matchtvvideo_NI1938496_translation_Letnij_biatlon_Alfa_Bank_Kubok_Sodruzhestva_Sprint_Muzhchiny: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] matchtvvideo_NI1938496_translation_Letnij_biatlon_Alfa_Bank_Kubok_Sodruzhestva_Sprint_Muzhchiny: Extracting information
[SportBox] Extracting URL: https://matchtv.ru/vdl/player/media/851766
[SportBox] 851766: Downloading webpage
ERROR: [SportBox] 851766: Unable to extract sources; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
gamer191 commented 1 year ago

You didn't post a verbose log:

[debug] Command-line config: ['-v', 'https://matchtv.ru/biathlon/matchtvvideo_NI1938496_translation_Letnij_biatlon_Alfa_Bank_Kubok_Sodruzhestva_Sprint_Muzhchiny']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.09.09.151504 [a006ce2b2] (linux_exe)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-6.4.12-surface-x86_64-with-glibc2.37 (OpenSSL 3.1.2 1 Aug 2023, glibc 2.37)
[debug] exe versions: ffmpeg 5.1.2 (setts), ffprobe 5.1.2, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1865 extractors
[generic] Extracting URL: https://matchtv.ru/biathlon/matchtvvideo_NI1938496_translation_Letnij_biatlon_Alfa_Bank_Kubok_Sodruzhestva_Sprint_Muzhchiny
[generic] matchtvvideo_NI1938496_translation_Letnij_biatlon_Alfa_Bank_Kubok_Sodruzhestva_Sprint_Muzhchiny: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] matchtvvideo_NI1938496_translation_Letnij_biatlon_Alfa_Bank_Kubok_Sodruzhestva_Sprint_Muzhchiny: Extracting information
[debug] Looking for embeds
[debug] Identified a SportBox embed
[SportBox] Extracting URL: https://matchtv.ru/vdl/player/media/851766
[SportBox] 851766: Downloading webpage
ERROR: [SportBox] 851766: Unable to extract sources; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp/extractor/common.py", line 715, in extract
  File "yt_dlp/extractor/sportbox.py", line 50, in _real_extract
  File "yt_dlp/extractor/common.py", line 1263, in _search_regex
gamer191 commented 1 year ago

This issue should probably be renamed to [SportBox] Unable to extract source

gthreepw00d commented 11 months ago

Code for extraction

#apply to frame url
url=""
xmlData=urllib.request.urlopen(url).read()
m=re.search('data-config="config=(.+)\?', str(xmlData))
url=m.group(1)
url=url.replace('/feed/','/media/',1)+'.m3u8'
print(url)