Files
addon/plugin.video.alfa/core/versiontools.py
alfa-addon e784bdc8be v1.7.0
2017-08-20 20:14:52 -04:00

38 lines
947 B
Python
Executable File

# -*- coding: utf-8 -*-
# --------------------------------------------------------------------------------
# Version Tools
# --------------------------------------------------------------------------------
import os
import scrapertools
from platformcode import config
def get_current_plugin_version():
return 4300
def get_current_plugin_version_tag():
return "1.7.0"
def get_current_plugin_date():
return "22/08/2017"
def get_current_channels_version():
f = open(os.path.join(config.get_runtime_path(), "channels", "version.xml"))
data = f.read()
f.close()
return int(scrapertools.find_single_match(data, "<version>([^<]+)</version>"))
def get_current_servers_version():
f = open(os.path.join(config.get_runtime_path(), "servers", "version.xml"))
data = f.read()
f.close()
return int(scrapertools.find_single_match(data, "<version>([^<]+)</version>"))