Buenas,
Estamos intentando subir videos en nuestra instancia de un grupo de nuestro sello y nos gustaria hacer una sincronización de su canal de Youtube para que se cuelgue todo en el canal de Peertube.
Las dos formas de hacerlo con un URL: uno por uno o sincronización de todo un canal, no funcionan.
He buscado el error y puede que sea algo de la actualización:
opened 04:14PM - 02 Jan 22 UTC
closed 07:56AM - 03 Jan 22 UTC
I have read past issues opened about this issue but cannot find a solution. This… happened after the latest upgrade to peertube 4.
* PeerTube instance: https://videos.trom.tf
* URL: https://videos.trom.tf
* version: 4.0.0
* NodeJS version:
* Ffmpeg version:
* Browser name, version and platforms on which you could reproduce the bug: Firefox
```
info[1/2/2022, 4:59:52 PM] Cannot fetch information from import for URL https://www.youtube.com/watch?v=AsPmJdlrBiI.
{
"err": {
"stack": "Error: Command failed with exit code 1: python /home/yunohost.app/peertube/storage/bin/yt-dlp --dump-json -f bestvideo[vcodec^=avc1][height=2160]+bestaudio[ext=m4a]/bestvideo[vcodec!*=av01][vcodec!*=vp9.2][height=2160]+bestaudio/bestvideo[vcodec^=avc1][height<=2160]+bestaudio[ext=m4a]/bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/best https://www.youtube.com/watch?v=AsPmJdlrBiI\nTraceback (most recent call last):\n File \"/usr/lib/python2.7/runpy.py\", line 174, in _run_module_as_main\n \"__main__\", fname, loader, pkg_name)\n File \"/usr/lib/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/home/yunohost.app/peertube/storage/bin/yt-dlp/__main__.py\", line 16, in <module>\n File \"/home/yunohost.app/peertube/storage/bin/yt-dlp/yt_dlp/__init__.py\", line 4\n f'You are using an unsupported version of Python. Only Python versions 3.6 and above are supported by yt-dlp' # noqa: F541\n ^\nSyntaxError: invalid syntax\n at makeError (/var/www/peertube/node_modules/execa/lib/error.js:60:11)\n at handlePromise (/var/www/peertube/node_modules/execa/index.js:118:26)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)",
"message": "Command failed with exit code 1: python /home/yunohost.app/peertube/storage/bin/yt-dlp --dump-json -f bestvideo[vcodec^=avc1][height=2160]+bestaudio[ext=m4a]/bestvideo[vcodec!*=av01][vcodec!*=vp9.2][height=2160]+bestaudio/bestvideo[vcodec^=avc1][height<=2160]+bestaudio[ext=m4a]/bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/best https://www.youtube.com/watch?v=AsPmJdlrBiI\nTraceback (most recent call last):\n File \"/usr/lib/python2.7/runpy.py\", line 174, in _run_module_as_main\n \"__main__\", fname, loader, pkg_name)\n File \"/usr/lib/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/home/yunohost.app/peertube/storage/bin/yt-dlp/__main__.py\", line 16, in <module>\n File \"/home/yunohost.app/peertube/storage/bin/yt-dlp/yt_dlp/__init__.py\", line 4\n f'You are using an unsupported version of Python. Only Python versions 3.6 and above are supported by yt-dlp' # noqa: F541\n ^\nSyntaxError: invalid syntax",
"shortMessage": "Command failed with exit code 1: python /home/yunohost.app/peertube/storage/bin/yt-dlp --dump-json -f bestvideo[vcodec^=avc1][height=2160]+bestaudio[ext=m4a]/bestvideo[vcodec!*=av01][vcodec!*=vp9.2][height=2160]+bestaudio/bestvideo[vcodec^=avc1][height<=2160]+bestaudio[ext=m4a]/bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/best https://www.youtube.com/watch?v=AsPmJdlrBiI",
"command": "python /home/yunohost.app/peertube/storage/bin/yt-dlp --dump-json -f bestvideo[vcodec^=avc1][height=2160]+bestaudio[ext=m4a]/bestvideo[vcodec!*=av01][vcodec!*=vp9.2][height=2160]+bestaudio/bestvideo[vcodec^=avc1][height<=2160]+bestaudio[ext=m4a]/bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/best https://www.youtube.com/watch?v=AsPmJdlrBiI",
"escapedCommand": "python \"/home/yunohost.app/peertube/storage/bin/yt-dlp\" --dump-json -f \"bestvideo[vcodec^=avc1][height=2160]+bestaudio[ext=m4a]/bestvideo[vcodec!*=av01][vcodec!*=vp9.2][height=2160]+bestaudio/bestvideo[vcodec^=avc1][height<=2160]+bestaudio[ext=m4a]/bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/best\" \"https://www.youtube.com/watch?v=AsPmJdlrBiI\"",
"exitCode": 1,
"stdout": "",
"stderr": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/runpy.py\", line 174, in _run_module_as_main\n \"__main__\", fname, loader, pkg_name)\n File \"/usr/lib/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/home/yunohost.app/peertube/storage/bin/yt-dlp/__main__.py\", line 16, in <module>\n File \"/home/yunohost.app/peertube/storage/bin/yt-dlp/yt_dlp/__init__.py\", line 4\n f'You are using an unsupported version of Python. Only Python versions 3.6 and above are supported by yt-dlp' # noqa: F541\n ^\nSyntaxError: invalid syntax",
"failed": true,
"timedOut": false,
"isCanceled": false,
"killed": false
}
}
```
I have tried with multiple video sources not only youtube so probably this is not youtube banning our IP. The error is instant so I am sure there are no connection issues.
2 Me gusta
Potser s’ha d’actualitzar el yt-dlp.
Relacionat amb:
Ostia no lo habia visto o no me acordaba. Lo miramos el lunes!
Quan pugui m’hi poso.
3 Me gusta
Solucionado!
He hecho lo mismo que la última vez, con la versión más reciente de yt-dlg. Supongo que volverá a pasar, cuando YT vuelva a tocar las cosas y saquen nuevas versiones. Avisadme y lo actualizaré manualmente.
1 me gusta
Moltes gràcies @marcelcosta
1 me gusta
Creo que hay que esperar a que yt-dlg actualice. Esto es debido a cambios de la API de youtube. Así que… cuanto menos dependéis de importar videos directamente, mejor.
Lo voy a dejar fijado para ir recordando comprobar si hay una nueva versión.
1 me gusta
Hola!
He revisado y aún no ha salido una nueva versión de yt-dlp (lo que usa por debajo peertube para descargar de Youtube). Maldito Youtube!
Estemos atentos al repo y cuando salga una nueva la actualizo.
Versión actual (la nuestra): 2023.07.06
Repo: Releases · yt-dlp/yt-dlp · GitHub
1 me gusta