Fixed some issues in cx_freeze
This commit is contained in:
parent
b9302000f6
commit
7d9067a611
@ -16,10 +16,13 @@ log = logging.getLogger("services.tidal")
|
||||
|
||||
class interface(base.baseInterface):
|
||||
name = "tidal"
|
||||
if config.app != None: # Workaround for cx_freeze 6.2 in python 3.7.
|
||||
enabled = config.app["services"]["tidal"].get("enabled")
|
||||
# This should not be enabled if credentials are not set in config.
|
||||
if config.app["services"]["tidal"]["username"] == "" or config.app["services"]["tidal"]["password"] == "":
|
||||
enabled = False
|
||||
else:
|
||||
enabled = False
|
||||
|
||||
def __init__(self):
|
||||
super(interface, self).__init__()
|
||||
|
@ -18,7 +18,10 @@ access_token = "e2237f17af545a4ba0bf6cb0b1a662e6"
|
||||
class interface(base.baseInterface):
|
||||
""" Class downloader for VK audios. """
|
||||
name = "vk"
|
||||
if config.app != None: # Workaround for cx_freeze 6.2 in python 3.7.
|
||||
enabled = config.app["services"]["vk"].get("enabled")
|
||||
else:
|
||||
enabled = False
|
||||
|
||||
#util functions.
|
||||
def get_auth(self):
|
||||
|
@ -10,7 +10,10 @@ log = logging.getLogger("extractors.youtube.com")
|
||||
|
||||
class interface(base.baseInterface):
|
||||
name = "YouTube"
|
||||
if config.app != None: # Workaround for cx_freeze 6.2 in python 3.7.
|
||||
enabled = config.app["services"]["youtube"].get("enabled")
|
||||
else:
|
||||
enabled = False
|
||||
|
||||
def search(self, text, page=1):
|
||||
if text == "" or text == None:
|
||||
|
@ -13,7 +13,10 @@ log = logging.getLogger("extractors.zaycev.net")
|
||||
|
||||
class interface(base.baseInterface):
|
||||
name = "zaycev.net"
|
||||
if config.app != None: # Workaround for cx_freeze 6.2 in python 3.7.
|
||||
enabled = config.app["services"]["zaycev"].get("enabled")
|
||||
else:
|
||||
enabled = False
|
||||
|
||||
def search(self, text, page=1):
|
||||
if text == "" or text == None:
|
||||
|
Loading…
Reference in New Issue
Block a user