|
|
@ -108,11 +108,11 @@ def current_version(version, nightly=False):
|
|
|
|
return get_version("master")
|
|
|
|
return get_version("master")
|
|
|
|
|
|
|
|
|
|
|
|
def get_version(level):
|
|
|
|
def get_version(level):
|
|
|
|
url = f"https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager/{level}/VERSION"
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
url = f"https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager/{level}/VERSION"
|
|
|
|
return parse_version(requests.get(url).content.decode().strip())
|
|
|
|
return parse_version(requests.get(url).content.decode().strip())
|
|
|
|
except requests.exceptions.ConnectionError:
|
|
|
|
except requests.exceptions.ConnectionError:
|
|
|
|
return None
|
|
|
|
return "Unknown", "Unknown", 0
|
|
|
|
|
|
|
|
|
|
|
|
def parse_version(version):
|
|
|
|
def parse_version(version):
|
|
|
|
split_version = version.split("-develop")
|
|
|
|
split_version = version.split("-develop")
|
|
|
|