mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Color!
This commit is contained in:
parent
28ba7b6ad0
commit
9e7bbb6c20
@ -15,10 +15,10 @@ from .. import server
|
||||
|
||||
def print_header_info():
|
||||
print()
|
||||
print("#####")
|
||||
print("Maloja v" + info.VERSION)
|
||||
#print("#####")
|
||||
print(col['yellow']("Maloja"),"v" + info.VERSION)
|
||||
print(info.HOMEPAGE)
|
||||
print("#####")
|
||||
#print("#####")
|
||||
print()
|
||||
|
||||
|
||||
@ -97,13 +97,12 @@ def debug():
|
||||
|
||||
def print_info():
|
||||
print_header_info()
|
||||
print("Configuration Directory:",globalconf.dir_settings['config'])
|
||||
print("Data Directory: ",globalconf.dir_settings['state'])
|
||||
print("Log Directory: ",globalconf.dir_settings['logs'])
|
||||
print("Network: ",f"IPv{ip_address(globalconf.malojaconfig['host']).version}, Port {globalconf.malojaconfig['port']}")
|
||||
print("Timezone: ",f"UTC{globalconf.malojaconfig['timezone']:+d}")
|
||||
print(col['lightblue']("Configuration Directory:"),globalconf.dir_settings['config'])
|
||||
print(col['lightblue']("Data Directory: "),globalconf.dir_settings['state'])
|
||||
print(col['lightblue']("Log Directory: "),globalconf.dir_settings['logs'])
|
||||
print(col['lightblue']("Network: "),f"IPv{ip_address(globalconf.malojaconfig['host']).version}, Port {globalconf.malojaconfig['port']}")
|
||||
print(col['lightblue']("Timezone: "),f"UTC{globalconf.malojaconfig['timezone']:+d}")
|
||||
print()
|
||||
print("#####")
|
||||
print()
|
||||
|
||||
@mainfunction({"l":"level","v":"version","V":"version"},flags=['version','include_images'],shield=True)
|
||||
|
6
maloja/thirdparty/__init__.py
vendored
6
maloja/thirdparty/__init__.py
vendored
@ -95,13 +95,13 @@ class GenericInterface:
|
||||
s = cls()
|
||||
if s.active_proxyscrobble():
|
||||
services["proxyscrobble"].append(s)
|
||||
log(cls.name + " registered as proxy scrobble target")
|
||||
#log(cls.name + " registered as proxy scrobble target")
|
||||
if s.active_import():
|
||||
services["import"].append(s)
|
||||
log(cls.name + " registered as scrobble import source")
|
||||
#log(cls.name + " registered as scrobble import source")
|
||||
if s.active_metadata():
|
||||
services["metadata"].append(s)
|
||||
log(cls.name + " registered as metadata provider")
|
||||
#log(cls.name + " registered as metadata provider")
|
||||
|
||||
def authorize(self):
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user