From 53ebdd76bdf2e89f7270c6f7a371959c074680d3 Mon Sep 17 00:00:00 2001 From: zackees Date: Wed, 7 Aug 2024 20:57:51 -0700 Subject: [PATCH] Update version to 1.2.11 and exit 0 on --upgrade --- README.md | 1 + ytclip/cmd.py | 1 + ytclip/version.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3690531..db3287f 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ See the server version: [ytclip-server](https://github.com/zackees/ytclip-server # Releases + * 1.2.11: `--upgrade` now exits 0 instead of continuing * 1.2.10: Adds `--crf` to control bit rate encoding. * 1.2.9: Drm video now detected properly and an output error message is emitted. * 1.2.8: Minimum version of `yt-dlp` bumped. Adds `--upgrade` for upgrading `yt-dlp` diff --git a/ytclip/cmd.py b/ytclip/cmd.py index 37b8041..8ff8f40 100644 --- a/ytclip/cmd.py +++ b/ytclip/cmd.py @@ -58,6 +58,7 @@ def run() -> int: # pylint: disable=too-many-branches,too-many-statements cmd = f'"{python_exe}" -m pip install --upgrade yt-dlp' print(f"Running: {cmd}") os.system(cmd) + sys.exit(0) if args.concurrent: run_concurrent() diff --git a/ytclip/version.py b/ytclip/version.py index ddeb62e..4343197 100644 --- a/ytclip/version.py +++ b/ytclip/version.py @@ -1,3 +1,3 @@ """Just holds the version for the app""" -VERSION = "1.2.10" +VERSION = "1.2.11"