Skip to content

Commit

Permalink
Update currentversion
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonIT committed Jan 14, 2019
1 parent 31604ec commit f207746
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SpotifyLyrics.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class Ui_Form(object):
self.label_songname.setText(_translate("Form",
"Spotify Lyrics <style type=\"text/css\">a {text-decoration: "
"none}</style><a "
"href=\"https://github.com/fr31/spotifylyrics/releases\"><sup>("
"href=\"https://github.com/SimonIT/spotifylyrics/releases\"><sup>("
"update)</sup></a>"))
self.textBrowser.setText(_translate("Form", "Play a song in Spotify to fetch lyrics."))
self.fontBox.setToolTip(_translate("Form", "Font Size"))
Expand Down
9 changes: 5 additions & 4 deletions backend.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
import json
import os
import re
import subprocess
Expand Down Expand Up @@ -206,9 +207,9 @@ def enum_window_callback(hwnd, pid):
def check_version():
proxy = urllib.request.getproxies()
try:
currentversion = requests.get("https://raw.githubusercontent.com/fr31/spotifylyrics/master/currentversion",
timeout=5, proxies=proxy).text
except Exception:
currentversion = json.loads(requests.get("https://api.github.com/repos/SimonIT/spotifylyrics/tags",
timeout=5, proxies=proxy).text)[0]["name"]
except Exception as e:
return True
try:
return float(version()) >= float(currentversion)
Expand All @@ -217,7 +218,7 @@ def check_version():


def version():
version = "1.21"
version = "1.22"
return version


Expand Down
1 change: 0 additions & 1 deletion currentversion

This file was deleted.

0 comments on commit f207746

Please sign in to comment.