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/yunohost.app/peertube/storage/tmp/a26ce65d36ecb793d56425fc8a7352a75c435040d03bf67547aa722a814e7a66-import.mp4 http://www.youtube.com/watch?v=randomstring
Running youtube-dl on my local machine also failed to download the video.
youtube-dl https://www.youtube.com/watch?v=randomstring [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 youtube-dl: Installed: 2019.01.17-1.1 Candidate: 2019.01.17-1.1 Version table: *** 2019.01.17-1.1 500 500 http://raspbian.raspberrypi.org/raspbian 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 220.127.116.11 (stable).
Just wanted to share my finding in case someone else have similar issues or maybe a solution.