Re: [CBLX] yt-dlp, le retour!!! de problèmes ..... !

[ Thread Index | Date Index | More lists.tuxfamily.org/carrefourblinux Archives ]


Bonjour,

on me souffle dans l'oreillette d'essayer en rajoutant le paramètre --geo-bypass dans la commande YTDLP.

après, peut être nous donner la version de YTDLP utilisé, afin qu'on puisse savoir de quel version on parle :) utiliser le paramètre --version.

Jerem
Le 24/08/2023 à 13:16, Aldo a écrit :
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: [youtube] unable to extract initial player response; 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
WARNING: [youtube] unable to extract yt initial data; 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: 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'

$
###



--
CBLX - CarrefourBLinuX MailingListe Pour obtenir de l'aide, envoyez le sujet help à: carrefourblinux-request@xxxxxxxxxxxxxxxxxxx Archives: http://listengine.tuxfamily.org/lists.tuxfamily.org/carrefourblinux ou http://www.mail-archive.com/carrefourblinux@xxxxxxxxxxxxxxxxxxx/

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/