Skip to content

Commit

Permalink
fix check of update
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetari committed Aug 9, 2024
1 parent 2bb642b commit b9a662d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyutube/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,5 @@ def pyutube(
error_console.print("❗ Unsupported link type.")
sys.exit()

# check_for_updates()
check_for_updates()
sys.exit()
2 changes: 1 addition & 1 deletion pyutube/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def check_for_updates() -> None:
if r.status_code == 200:
latest_version = r.json()['info']['version']

if latest_version != __version__:
if latest_version != __version__ and latest_version < __version__:
console.print(
f"👉 A new version of {__app__} is available: {
latest_version}. Update it by running [bold red link=https://github.com/Hetari/pyutube]pip install --upgrade {__app__}[/bold red link]",
Expand Down

0 comments on commit b9a662d

Please sign in to comment.