1
0
Fork 0

[update] Implement --update-to repo

Authored by: Grub4K, pukkandan
This commit is contained in:
Simon Sawicki 2023-05-20 21:21:32 +02:00
commit 665472a7de
No known key found for this signature in database
4 changed files with 41 additions and 23 deletions

View file

@ -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()