Importing in Peertube from Youtube fails. [Command failed with exit code 1]

Hello, Yunohost community!
Im trying out Yunohost on a VPN (clean Debian installation).
I managed to get few things working with domain, Lets Encrypt, Matrix, and other apps.

However i run into some issues when trying to import videos on my Younohost Peertube instance.
I successfully imported few shorter videos (about 5 min) but with other longer (18 min) returns following error when checking the log in “My imports”.

Command failed with exit code 1: /var/www/peertube/node_modules/youtube-dl/bin/youtube-dl -f bestvideo[ext=mp4]+bestaudio[ext=m4a]/best -o /home/

Running youtube-dl on my local machine also failed to download the video.

[youtube] randomstring: Downloading webpage
[youtube] randomstring: Downloading video info webpage
ERROR: randomstring: YouTube said: This video is unavailable.

After some searching for a solution for my local machine i found that the youtube-dl version on Debian is stuck on an older version.

apt-cache policy youtube-dl
  Installed: 2019.01.17-1.1
  Candidate: 2019.01.17-1.1
  Version table:
 *** 2019.01.17-1.1 500
        500 buster/main armhf Packages
        100 /var/lib/dpkg/status

After updating to latest youtube-dl version on my local machine i was able to download the video locally (794 MB).
I suspect that Peertube on Yunohost is using older version of youtube-dl (not sure how to check) and therefore failing when importing some videos.

YunoHost (stable).
ID peertube
Version 2.1.1~ynh1

Just wanted to share my finding in case someone else have similar issues or maybe a solution.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.