mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-22 04:11:29 +00:00
Some logger changes
This commit is contained in:
parent
52cf8869b4
commit
097051cdef
|
@ -11,12 +11,6 @@ from pyfzf.pyfzf import FzfPrompt
|
||||||
fzf = FzfPrompt()
|
fzf = FzfPrompt()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
logger.remove()
|
|
||||||
logger.add(sys.stderr, filter='src.fw_api')
|
|
||||||
logger.add(sys.stderr, filter='src.fw_radios')
|
|
||||||
logger.add(sys.stderr, filter='src.fw_artists')
|
|
||||||
logger.add(sys.stderr, filter='src.fw_albums')
|
|
||||||
logger.add(sys.stderr, filter='src.fw_channels')
|
|
||||||
while True:
|
while True:
|
||||||
menu = ['Radios',
|
menu = ['Radios',
|
||||||
'Artists',
|
'Artists',
|
||||||
|
@ -42,6 +36,7 @@ def main():
|
||||||
if search_type == 'Federated':
|
if search_type == 'Federated':
|
||||||
print('Input url:')
|
print('Input url:')
|
||||||
returned_obj = federate_search_by_url(input())
|
returned_obj = federate_search_by_url(input())
|
||||||
|
logger.info(str(returned_obj))
|
||||||
|
|
||||||
if selected == 'Switch instance':
|
if selected == 'Switch instance':
|
||||||
with open('config.json', 'rt') as f:
|
with open('config.json', 'rt') as f:
|
||||||
|
|
Loading…
Reference in a new issue