Skip to content
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

[fr] implement "--update-to master" parameter #5233

Closed
throwaway242685 opened this issue Feb 22, 2024 · 3 comments
Closed

[fr] implement "--update-to master" parameter #5233

throwaway242685 opened this issue Feb 22, 2024 · 3 comments

Comments

@throwaway242685
Copy link

throwaway242685 commented Feb 22, 2024

yt-dlp has the following command:

yt-dlp --update-to master

and I was wondering if something similar could be implemented to gallery-dl?

here's the description of that command in yt-dlp:

screenshot_20240222-152346.png

and here's the verbose log when running the previous command with -v:

yt-dlp --update-to master -v
[debug] Command-line config: ['--update-to', 'master', '-v']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8 (No VT), erro
r utf-8 (No VT), screen utf-8 (No VT)
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp-master-builds
 [55f183337] (win_x86_exe)
[debug] Python 3.8.10 (CPython x86 32bit) - Windows-7-6.1.7601-SP1 (OpenSSL 1.1.
1k  25 Mar 2021)
[debug] exe versions: ffmpeg N-113725-g37702e2066-20240220 (setts), ffprobe N-11
3725-g37702e2066-20240220
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02,
 mutagen-1.47.0, requests-2.31.0, sqlite3-3.35.5, urllib3-2.2.1, websockets-12.0

[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1834 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-master
-builds/releases/latest
Latest version: [email protected] from yt-dlp/yt-dlp-master-builds
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp-master-builds)

(in case that it helps with something)

@throwaway242685 throwaway242685 changed the title [fr] implement --update-to parameter [fr] implement "--update-to master" parameter Feb 22, 2024
@mikf
Copy link
Owner

mikf commented Jun 1, 2024

I've implemented a few options related to this:
2e323ef, 5018bd4, 53aadb0

  • -U/--update updates an executable file to the latest release
  • --update-check checks if the local version is up to date
  • --update-to allows switching to a different release channel (stable or dev)
    as well as upgrading/downgrading to a specific tag.

@throwaway242685
Copy link
Author

throwaway242685 commented Jun 5, 2024

ohh, thank you, but... idk if the master channel can be downloaded with that?

@mikf
Copy link
Owner

mikf commented Jun 5, 2024

Just try it. master and nightly are aliased to dev, since they are basically the same (at least for gallery-dl), so --update-to master works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants