-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle GitHub changes to fetch latest yt-dlp
#375
base: master
Are you sure you want to change the base?
Handle GitHub changes to fetch latest yt-dlp
#375
Conversation
@richardsondev Please also update
|
That would also require a change to getRemoteVersion. I agree that we should also get yt-dlp_macos and yt-dlp_macos_legacy now and I can make a pull request to also fix that, but until then we should merge this as soon as possible since it resolves so many issues. |
I can confirm that this fixes the issue 😄 LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested this pr on Linux and can confirm it works.
How can I download this? I need to download a youtube video by tomorrow because I need to be able to view it offline... |
@42Willow the quickest solution is to use https://github.com/jely2002/youtube-dl-gui/releases/tag/v2.3.1 instead, that version still packages youtube_dl. Altnernatively I merged this PR in my own fork and made a release for macOS and Linux. Unfortunately the Windows Build is broken: https://github.com/StefanLobbenmeier/youtube-dl-gui/releases/tag/v2.4.2 |
In the meantime, you can also download the https://github.com/yt-dlp/yt-dlp/releases On Windows, the |
Dunno if this is the right place, but stumbled over the same error in Windows 11 and therefore went to build this branch (richardson:handlegithubchangesytdlp) via npm under Node Current (v18.8.0):
Build went fine and can confirm that the error doesn't appear anymore and that downloading videos works as it should. If this comment should be applied as a "Review" instead, let me know - i wasn't sure about that. |
@claudiusraphael no worries, this repo is anarchy now anyway 😄 Good to know that the windows build still works locally, the CI build has some strange powershell in it that fails:
So maybe we can also fix the CI build. Is there actually anyone interested continuing dev in an active fork since @jely2002 does not seem to respond anymore? I could offer mine, but I can only review PRs and not develop myself |
Inspired by that it is actually supposed to be able to build on windows I fixed the CI (removed anything related to Sentry) and made a new release here: https://github.com/StefanLobbenmeier/youtube-dl-gui/releases/tag/v2.4.3 Feel free to link that in future issues 😄 |
Just to confirm, tried the installer (for Windows: Open-Video-Downloader-Setup-2.4.3.exe ) and it works as expected under Windows 11 with latest Updates! [EDIT] P.s.: Can also confirm AppImage (Open-Video-Downloader-2.4.3.AppImage ) under Fedora 35 Workstation + Ubuntu Desktop 22.04 and 20.04 and DMG (Open-Video-Downloader-2.4.3.dmg ) under Monterey with latest Updates (tested on MBP 13" Late 2015) , work as well! |
If you find a minute would you be so kind to post an excerpt/diff here of the changes made? I think it might be helpful to understand the details (for Learners), especially regarding PowerShell. Thx! |
no problem - you can find all my changes here: https://github.com/StefanLobbenmeier/youtube-dl-gui/commits/master I had to remove sentry from the Linux build and the windows build here: StefanLobbenmeier@eba0da1 The reason those sentry related lines are in there are because this is a web service for error reporting, where I would need the secret of the owner to access his project. I could also create a new sentry project and use my own secret there, but I was not able to get that working. For now removing it is the easier solution. |
Hi folks, will take a look at some open PR's in a couple hours. I need to test them before I can confidently release a new version and that takes time as it has been a while. |
I don't know what the actual status is, but if you need a tester for a new release on Windows 11 Pro, Windows 10 LTSC Enterprise, Macos Monterey, Fedora Workstation 36, Ubuntu 22.04, let me know. If of help provide me detailed steps for debugging/creating reports. To inform/ping me you can do so on discord: claudiusraphael#2172 |
Version 2.4.3 is running fine on my W11Pro. |
Just to avoid confusion @odhiambo you are talking about a release from https://github.com/StefanLobbenmeier/youtube-dl-gui/releases/? There is no 2.4.3 in https://github.com/jely2002/youtube-dl-gui/releases |
Sorry for the confusion, but I was referring to the one created by @StefanLobbenmeier |
So is there going to be active development on this repo anymore? I am using @StefanLobbenmeier 's fork now on my machine but was trying to figure out if I should put in a pull request to try and redirect the homebrew cask to the new repo as it is currently pulling the broken version from this repo. |
Issue
GitHub has removed the response body when redirecting a user during release downloads which has broken the
yt-dlp
runtime download. This is causing first time executions of the application to not downloadyt-dlp
and return "Error! Binaries missing/corrupted" in the UI.Background
The approach to grab the latest version of
yt-dlp
was relying on GitHub to return the redirect URL in the body response when fetching the latest binary. GitHub has changed to no longer return the URL in the response body and is only emitting it in theLocation
header now.This PR
This PR is changing the logic to read the version from the
Location
header during the redirect.In my testing the application now correctly detects the latest version number for
yt-dlp
and downloads it correctly.After screenshot
ytdlVersion file
{"version":"2022.05.18","ytdlp":true}
Tests