jely2002 / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
6.4k stars 438 forks source link

Open video downloader not updating to yt-dlp binary #483

Open amarant24 opened 1 year ago

amarant24 commented 1 year ago

Open Video Downloader will not download any new videos due to outdated yt-dl binary without support. The yt-dlp binary will work but isn't being downloaded by the app. Maybe add an option to use yt-dlp binary or scrap the yt-dl binary all together and just upgrade to yt-dlp. How to reproduce? Try and download any video...

AdamGalt commented 1 year ago

As a workaround for others finding this thread, you can download the latest yt-dlp binary here: https://github.com/yt-dlp/yt-dlp/releases

and then copy it to here: C:\Users\$user\AppData\Local\Programs\youtube-dl-gui\resources\app.asar.unpacked\binaries

that will get things working again until the updater issue is fixed.

amarant24 commented 1 year ago

Whats the work around for OSX?

AdamGalt commented 1 year ago

Whats the work around for OSX?

I'm sorry but I don't have OSX available to test. The principle should be the same though. Grab the latest binary from https://github.com/yt-dlp/yt-dlp/releases and use it to replace the current binary in your installation path.

Stefifox commented 1 year ago

I found a work around for OSX Use your terminal to navigate into the package of youtube-dl-gui path: "/Applications/Open\ Video\ Downloader.app/Contents/Resources/app.asar.unpacked/binaries/"

Screenshot 2023-04-09 alle 11 19 11

Then use the update comand on the binary "./yt-dlp-unix -U" You also need to open the ytdlVersion file with a text editor and update the version number inside

omaerkhan commented 1 year ago

FYI - I got the MacOS version... For anyone not so tech-savvy, who needs help, the following commands should help (run them in the Terminal App)... (The commands assume that Open Video Downloader is stored in the /Applications/ folder - if not, then adjust the first cd /Applications/Open\ Video\ Downloader.app/ command appropriately). (Note I start each command with sudo sh just incase sudo is required, but on my system everything worked without the sudo... And you'll have to type your password after the sudo sh command).

sudo sh
cd /Applications/Open\ Video\ Downloader.app/
cd Contents/Resources/app.asar.unpacked/binaries/ 

mv ./yt-dlp-unix ./yt-dlp-unix-backup
mv ./ytdlVersion ./ytdlVersion-backup
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o ./yt-dlp-new
mv ./yt-dlp-new ./yt-dlp-unix
chmod a+rx ./yt-dlp-unix
echo "{\"version\":\"$(./yt-dlp-unix --version)\"},\"ytdlp\":true}" > ytdlVersion

exit

If this doesn't work, then you can undo the changes by using:

sudo sh
cd /Applications/Open\ Video\ Downloader.app/
cd Contents/Resources/app.asar.unpacked/binaries/

mv  ./yt-dlp-unix-backup ./yt-dlp-unix
mv ./ytdlVersion-backup ./ytdlVersion

exit

On the other hand, if this does work, then you can clean up the backup files:

sudo sh
cd /Applications/Open\ Video\ Downloader.app/
cd Contents/Resources/app.asar.unpacked/binaries/

rm  ./yt-dlp-unix-backup
rm ./ytdlVersion-backup

exit
electr1cBugaloo commented 5 months ago

For those not aware, open video downloader in this repo hasn't been updated since 2020. The fork below seems to actively maintained and has fixed this issue, so switching to this fork seems to be the better option going forward:

https://github.com/StefanLobbenmeier/youtube-dl-gui