No sé que pasa, que hace unas semanas que ya no te deja importar videos de youtube a peertube…
He estado mirado la configuración y dice esto:
No sé a qué se refiere con lo del servidor proxy, si es una liada o no… Aquí el enlace donde te lleva si le das a 8un servidor proxy http’:
Más que nada, la gran ventaja de importarlo de youtube es que usa el compresor de youtube y el video pesa muy poco y tiene buena calidad…
1 me gusta
Sí, ya lo detecté hace un mes:
Hola,
Como Cesk Freixas me ha hecho notar, no funciona la función de importar des de Youtube al Peertube. Creo que debe ser que Youtube ha cambiado la API y yt-dlg ya no funciona (creo que es lo que usa por debajo peertube para descargar el video). Yo también he tenido problemas con la herramienta yt-dlg en mi ordenador.
Cuando sepa algo más o se solucione lo avisaré por aquí.
Saludos!
Lo podemos mirar el lunes, a ver si hay alguna mejora.
2 Me gusta
Ostia no lo habia visto o no me acordaba. Lo miramos el lunes!
1 me gusta
Ya está solucionado.
He actualizado el peertube a 5.1 y además he solucionado el problema de importar videos de youtube.
El problema es que el script que usaba peertube estaba desactualizado. He sustituído el viejo por una versión nueva en la misma ubicación.
cd /var/www/peertube/storage/bin/
sudo wget https://github.com/yt-dlp/yt-dlp/releases/download/2023.03.04/yt-dlp
sudo mv youtube-dl youtube-dl.old
sudo mv yt-dlp youtube-dl
chown peertube:peertube youtube-dl
``
2 Me gusta
Hola!
Estaba dando errores, así que he repetido los comandos para que se actualice a la última versión de yt-dlp.
choan
19 Julio, 2024 07:27
6
Hola, amigues.
Me acabo de topar con este mismo problema. Iba a abrir hilo, pero entiendo que YT ha vuelto a tocar cositas y el parche a aplicar será el mismo.
Este es el mensaje de error:
Salud!
Sí, YT siempre hace de las suyas. Y hace poco hizo una gorda que fallaron muchas aplicaciones relacionadas.
Actualizo el yt-dlp.
EDIT: hecho! @choan , si en algún momento puedes volver a probar…
choan
19 Julio, 2024 10:37
8
Gracias, Marcel.
Sigue dando el mismo error
Vale, parece que tenemos un problemilla. Tras probar la nueva versión de “yt-dlp” en local, me aparece:
ERROR: [youtube] zoAs0-nXPQM: Sign in to confirm you’re not a bot. This helps protect our community. Learn more
Por lo que se ve, podríamos tener baneada la IP:
opened 12:12PM - 07 Jun 24 UTC
external issue
site-bug
### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- [X] I understand that I will b… e **blocked** if I *intentionally* remove or skip any mandatory\* field
### Checklist
- [X] I'm asking a question and **not** reporting a bug or requesting a feature
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar questions **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
### Please make sure the question is worded well enough to be understood
I've been having this problem for a day when I make a query from YouTube, it's more frequent than normal and I'm using proxies
ERROR: [youtube] 4TWR90KJl84: Sign in to confirm you’re not a bot. This helps protect our community. Learn more
### Provide verbose output that clearly demonstrates the problem
- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [ ] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below
### Complete Verbose Output
```shell
[debug] Command-line config: ['-Uv', '--proxy', 'xxxxx', 'Q0W6wcio384']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2024.05.26 from yt-dlp/yt-dlp [ae2af1104] (zip)
[debug] Python 3.8.10 (CPython x86_64 64bit) - Linux-5.15.0-105-generic-x86_64-with-glibc2.29 (OpenSSL 1.1.1f 31 Mar 2020, glibc 2.31)
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7
[debug] Optional libraries: sqlite3-3.31.1
[debug] Proxy map: {'all': 'xxxx'}
[debug] Request Handlers: urllib
[debug] Loaded 1820 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
ERROR: Unable to obtain version info (EOF occurred in violation of protocol (_ssl.c:1131)); Please try again later or visit https://github.com/yt-dlp/yt-dlp/releases/latest
[youtube] Extracting URL: Q0W6wcio384
[youtube] Q0W6wcio384: Downloading webpage
[youtube] Q0W6wcio384: Downloading ios player API JSON
ERROR: [youtube] Q0W6wcio384: Sign in to confirm you’re not a bot. This helps protect our community. Learn more
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 734, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/youtube.py", line 4248, in _real_extract
self.raise_no_formats(reason, expected=True)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1257, in raise_no_formats
raise ExtractorError(msg, expected=expected, video_id=video_id)
```
choan
20 Julio, 2024 15:27
10
Ouch. Qué mal. ¿Toca esperar a que el baneo se levante casualmente? ¿Usar un proxy residencial? ¿Otra cosa?
Hola!
Pues no sé muy bien cómo lo podemos solucionar. Especialmente sin generar dependencias con otros servicios de terceros…
En cualquier caso, la solución estaría bien que fuera integrada en peertube. Se está discutiendo aquí:
abierto 09:53PM - 20 Jul 24 UTC
Type: Feature Request
Component: Import
### Describe the current behavior
YT decided to block directly IP range of any … crawlers like yt-dlp and apparently it can take days to months before the IP will be unblocked! this happening since june 10. Searching for a solution now the best is to have a random ipv6 range. VPN or Oauth may or may not work. I just hope we can find a way to avoid this stupid restriction. is anyone have a good solution please share it here thanks
### Steps to reproduce
just try manually yt-dlp from your server and will see if your IP is blocked or not
### Describe the expected behavior
_No response_
### Additional information
_No response_
Hola!
A partir de la versión 6.3.0. (ayer actualizamos a la 6.3.2) se ha incluido la opción de incorporar una lista de proxies para la descarga desde youtube-dl.
Add ability for admins to set multiple proxies for youtube-dl that PeerTube will randomly select
https://github.com/Chocobozzz/PeerTube/releases/tag/v6.3.0
Y ya he visto dónde hay que incluirlas:
# By default PeerTube uses HTTP_PROXY and HTTPS_PROXY environment variables
# But you can specify custom proxies for youtube-dl because remote websites (like YouTube) may block your server IP address
# PeerTube will randomly select a proxy from the following list
# You may need to use a standalone youtube-dl binary (see `url` key comment above) to use this feature
proxies:
# - "https://username:password@example.com:8888"
Alguien conoce algún proxy de confianza? Yo no tengo ni idea…
cc @choan
Tras la sugerencia de @choan , he probado de correr yt-dlp con tor, sin éxito.
He instalado tor:
sudo apt install tor
He comprobado que estaba activo y escuchando el canal que toca.
sudo netstat -tunpla
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN 4016147/tor
He probado de usar yt-dlp, pero el error sigue:
sudo ./youtube-dl --proxy socks5://127.0.0.1:9050 'https://www.youtube.com/watch?v=eP1kaJexkgI'
[youtube] Extracting URL: https://www.youtube.com/watch?v=eP1kaJexkgI
[youtube] eP1kaJexkgI: Downloading webpage
[youtube] eP1kaJexkgI: Downloading ios player API JSON
[youtube] eP1kaJexkgI: Downloading web creator player API JSON
ERROR: [youtube] eP1kaJexkgI: Sign in to confirm you’re not a bot. This helps protect our community. Learn more
choan
21 Febrero, 2025 19:04
14
¿Es el mismo error que da sin Tor?
En mi (poca) experiencia resolviendo un problema similar, esto se resolvió pasándole datos de una cookie autenticada.
Me lo miro cuando pueda y te hablo por privado.
Sin Tor me baneaba la IP y no llegaba ni a esto.
[Edit] Como mola que el vídeo de prueba siga siendo de Cafrune
1 me gusta
Mismo error. Y a nivel personal, estoy teniendo un problema similar con freetube y no me funciona tampoco con tor.