Skip to content

Commit

Permalink
fix: check for app updates
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtalhaasghar committed Feb 19, 2022
1 parent 323d5d8 commit eabfb52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mps_youtube/commands/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def quits(showlogo=True):
if config.CHECKUPDATE.get and showlogo:

try:
url = "https://raw.githubusercontent.com/mps-youtube/mps-youtube/master/VERSION"
url = "https://raw.githubusercontent.com/iamtalhaasghar/yewtube/master/setup.py"
v = urlopen(url, timeout=1).read().decode()
v = re.search(r"^version\s*([\d\.]+)\s*$", v, re.MULTILINE)
v = re.search(r'__version__\s*=\s*"\s*([\d\.]+)\s*"\s*', v, re.MULTILINE)

if v:
v = v.group(1)
Expand Down

0 comments on commit eabfb52

Please sign in to comment.