mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-11-01 15:10:45 +00:00
[update] Implement --update-to repo
Authored by: Grub4K, pukkandan
This commit is contained in:
@@ -939,7 +939,7 @@ def _real_main(argv=None):
|
||||
ydl.cache.remove()
|
||||
|
||||
try:
|
||||
updater = Updater(ydl, opts.update_self if isinstance(opts.update_self, str) else None)
|
||||
updater = Updater(ydl, opts.update_self)
|
||||
if opts.update_self and updater.update() and actual_use:
|
||||
if updater.cmd:
|
||||
return updater.restart()
|
||||
|
||||
Reference in New Issue
Block a user