2021-05-25 17:41:56 +02:00
|
|
|
from librespot.proto.Keyexchange_pb2 import *
|
2021-02-24 00:46:59 +01:00
|
|
|
import platform
|
|
|
|
|
|
|
|
|
|
|
|
class Version:
|
2021-07-18 00:32:39 +02:00
|
|
|
version = "0.0.1"
|
2021-02-24 00:46:59 +01:00
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def platform() -> Platform:
|
|
|
|
if platform.system() == "Windows":
|
|
|
|
return Platform.PLATFORM_WIN32_X86
|
2021-04-10 01:30:53 +02:00
|
|
|
if platform.system() == "Darwin":
|
2021-02-24 00:46:59 +01:00
|
|
|
return Platform.PLATFORM_OSX_X86
|
2021-04-10 01:30:53 +02:00
|
|
|
return Platform.PLATFORM_LINUX_X86
|
2021-02-24 00:46:59 +01:00
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def version_string():
|
|
|
|
return "librespot-python " + Version.version
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def system_info_string():
|
|
|
|
return Version.version_string(
|
|
|
|
) + "; Python " + platform.python_version() + "; " + platform.system()
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def standard_build_info() -> BuildInfo:
|
|
|
|
return BuildInfo(product=Product.PRODUCT_CLIENT,
|
|
|
|
product_flags=[ProductFlags.PRODUCT_FLAG_NONE],
|
|
|
|
platform=Version.platform(),
|
|
|
|
version=112800721)
|