Skip to content

Commit

Permalink
fix: check_for_updates method
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetari committed Oct 6, 2024
1 parent c5fc490 commit 2fecb30
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<!-- git-changelog -c basic -t keepachangelog >> CHANGELOG.md -->

# Changelog

All notable changes to this project will be documented in this file.
Expand All @@ -9,16 +7,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

<!-- insertion marker -->

## Unreleased
## [1.3.29](https://github.com/Hetari/pyutube/releases/tag/1.3.29) - 2024-10-06

<small>[Compare with latest](https://github.com/Hetari/pyutube/compare/1.3.24...HEAD)</small>
<small>[Compare with 1.3.24](https://github.com/Hetari/pyutube/compare/1.3.24...1.3.29)</small>

### Fixed

- fix: cancel video download before selecting quality ([ae17d15](https://github.com/Hetari/pyutube/commit/ae17d15bb6c2cb53b31860985901a5e22af82480) by Hetari).
- fix utils ([a30a48e](https://github.com/Hetari/pyutube/commit/a30a48ea8961fde6beb597c9cd83d05d27eb98a9) by Hetari).

<!-- insertion marker -->
### Removed

- remove cache ([c5fc490](https://github.com/Hetari/pyutube/commit/c5fc4906d2b4a02836c46a0f429a3cd2b9934460) by Hetari).

## [1.3.24](https://github.com/Hetari/pyutube/releases/tag/1.3.24) - 2024-09-25

Expand Down
5 changes: 3 additions & 2 deletions pyutube/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from pytubefix import __version__ as pytubefix_version


__version__ = "1.3.29-dev"
__version__ = "1.3.30"
__app__ = "pyutube"
ABORTED_PREFIX = "Aborted"
CANCEL_PREFIX = "Cancel"
Expand Down Expand Up @@ -225,7 +225,8 @@ def check_for_updates() -> None:
f'https://pypi.org/pypi/{library}/json', headers={'Accept': 'application/json'})
if r.status_code == 200:
latest_version = r.json()['info']['version']
if latest_version != version:

if latest_version != version['version']:
console.print(
f"👉 A new version of [blue]{library}[/blue] is available: {latest_version} " +
f"Update it by running [bold red link=https://github.com/Hetari/pyutube]pip install --upgrade {library}[/bold red link]",
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"inquirer",
"yaspin",
"typer",
"requests-cache",
"requests",
"rich",
"inquirer",
"termcolor",
Expand Down

0 comments on commit 2fecb30

Please sign in to comment.