]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/__init__.py
[update] Implement `--update-to` repo
[yt-dlp.git] / yt_dlp / __init__.py
index 8806106d31d0e101f84808664443e1bec0b89701..9563d784aaf32322f4c215af9a5d55b6ab327cdf 100644 (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()