Hello, qq'un sait-il m'expliquer ce que ces msgs d'erreur signifient, et en passant n'hésitez pas à essayer le lien (c pas récent mais c de la bonne zyc!)
A+ Aldo. (je met en plus de la sortie des événements mon script basé sur yt-dlp en pj, à toutes fins utiles et si ça peut servir ...) ### $ which yt-dlp /home/aldo/bin/yt-dlp $ which yt-dlp_to_mp3 /home/aldo/bin/yt-dlp_to_mp3 #(mon script perso, cf. pj, qui a tj fonctionné depuis longtemps!) $ whereis yt-dlp yt-dlp: /usr/bin/yt-dlp /home/aldo/bin/yt-dlp /usr/share/man/man1/yt-dlp.1.gz # Essai 1: $ yt-dlp_to_mp3 xqe6TF2y8i4 YT-DLP_to_MP3 ! Running yt-dlp_to_mp3 http://youtu.be/xqe6TF2y8i4 [youtube] Extracting URL: http://youtu.be/xqe6TF2y8i4 [youtube] xqe6TF2y8i4: Downloading webpage WARNING:[0m [youtube] unable to extract [0;94minitial player response[0m; 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 [youtube] xqe6TF2y8i4: Downloading android player API JSON [youtube] xqe6TF2y8i4: Downloading iframe API JS [youtube] xqe6TF2y8i4: Downloading player 21812a9c [youtube] xqe6TF2y8i4: Downloading web player API JSON [0;33mWARNING:[0m [youtube] unable to extract [0;94myt initial data[0m; 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 [youtube] xqe6TF2y8i4: Downloading initial data API JSON [info] xqe6TF2y8i4: Downloading 1 format(s): 251 ERROR:[0m unable to download video data: HTTP Error 403: Forbidden # Evidemment la suite ne marche pas!... MPlayer 1.3.0 (Debian), built with gcc-9 (C) 2000-2016 MPlayer Team Playing ./*xqe6TF2y8i4*.mp3. File not found: './*xqe6TF2y8i4*.mp3' Failed to open ./*xqe6TF2y8i4*.mp3. Exiting... (End of file) $ clear # Essai 2: $ /usr/bin/yt-dlp xqe6TF2y8i4 [youtube] xqe6TF2y8i4: Downloading webpage [youtube] xqe6TF2y8i4: Downloading android player API JSON [youtube] xqe6TF2y8i4: Downloading iframe API JS [youtube] xqe6TF2y8i4: Downloading player 21812a9c [youtube] xqe6TF2y8i4: Downloading web player API JSON Traceback (most recent call last): File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2479, in _decrypt_signature return func(s) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2385, in <lambda> return lambda s: ''.join(s[i] for i in cache_spec) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2385, in <genexpr> return lambda s: ''.join(s[i] for i in cache_spec) TypeError: string indices must be integers During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/yt_dlp/extractor/common.py", line 617, in extract ie_result = self._real_extract(url) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 3320, in _real_extract live_broadcast_details, is_live, streaming_data, formats = self._list_formats(video_id, microformats, video_details, player_responses, player_url) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 3239, in _list_formats formats = list(self._extract_formats(streaming_data, video_id, player_url, is_live)) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 3069, in _extract_formats signature = self._decrypt_signature(sc['s'][0], video_id, player_url) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2481, in _decrypt_signature raise ExtractorError('Signature extraction failed: ' + traceback.format_exc(), cause=e) yt_dlp.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2479, in _decrypt_signature return func(s) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2385, in <lambda> return lambda s: ''.join(s[i] for i in cache_spec) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2385, in <genexpr> return lambda s: ''.join(s[i] for i in cache_spec) TypeError: string indices must be integers (caused by TypeError('string indices must be integers')); please report this issue on https://github.com/yt-dlp/yt-dlp , filling out the "Broken site" issue template properly. Confirm you are on the latest version using yt-dlp -U During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1389, in wrapper return func(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1459, in __extract_info ie_result = ie.extract(url) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/common.py", line 643, in extract raise type(e)(e.orig_msg, **kwargs) yt_dlp.utils.ExtractorError: [youtube] xqe6TF2y8i4: Signature extraction failed: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2479, in _decrypt_signature return func(s) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2385, in <lambda> return lambda s: ''.join(s[i] for i in cache_spec) File "/usr/lib/python3/dist-packages/yt_dlp/extractor/youtube.py", line 2385, in <genexpr> return lambda s: ''.join(s[i] for i in cache_spec) TypeError: string indices must be integers (caused by TypeError('string indices must be integers')); please report this issue on https://github.com/yt-dlp/yt-dlp , filling out the "Broken site" issue template properly. Confirm you are on the latest version using yt-dlp -U During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/yt-dlp", line 11, in <module> load_entry_point('yt-dlp==2022.3.8.1', 'console_scripts', 'yt-dlp')() File "/usr/lib/python3/dist-packages/yt_dlp/__init__.py", line 865, in main _real_main(argv) File "/usr/lib/python3/dist-packages/yt_dlp/__init__.py", line 855, in _real_main retcode = ydl.download(all_urls) File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 3254, in download self.__download_wrapper(self.extract_info)( File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 3227, in wrapper res = func(*args, **kwargs) File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1380, in extract_info return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process) File "/usr/lib/python3/dist-packages/yt_dlp/YoutubeDL.py", line 1407, in wrapper self.report_error(str(e), e.format_traceback()) File "/usr/lib/python3/dist-packages/yt_dlp/utils.py", line 1088, in format_traceback self.cause and ''.join(traceback.format_exception(self.cause)[1:]), TypeError: format_exception() missing 2 required positional arguments: 'value' and 'tb' $ ###
#!/bin/bash # # YT-DLP To Mp3 Converter - OLR - 22-06-2023 - Public # # Var: DEFURL="http://youtu.be" DEFPL="mplayer -vo null -vc dummy -nolirc -nojoystick -cache-min 2" # # Running ! clear echo "YT-DLP_to_MP3 ! " test -z "$1" && echo " Usage: yt-dlp_to_mp3 YT-ID (11 chars) " && echo " " && exit echo " Running yt-dlp_to_mp3 $DEFURL/$1 " # Download, don't convert to audio, keep downloaded video file #yt-dlp --ignore-errors --no-abort-on-error --no-check-certificates --ignore-config --retries 20 --buffer-size 512 --restrict-filenames -k $DEFURL/$1 # Download, extract audio to mp3, play ./*$1*.mp3 yt-dlp --ignore-errors --no-abort-on-error --no-check-certificates --ignore-config --retries 20 --buffer-size 512 --restrict-filenames --extract-audio --audio-format mp3 --audio-quality 6 $DEFURL/$1 # Play On/Off #$DEFPL ./*$1* $DEFPL ./*$1*.mp3 # exit # # End of script.