mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-24 01:39:20 +02:00
Compare commits
2 Commits
add2ef572c
...
9ec77975e5
Author | SHA1 | Date | |
---|---|---|---|
localhost_frssoft | 9ec77975e5 | ||
localhost_frssoft | 821769f47b |
|
@ -11,8 +11,7 @@ from src.fw_recents import list_fav_or_history
|
||||||
import src.settings as settings
|
import src.settings as settings
|
||||||
import src.mpv_control
|
import src.mpv_control
|
||||||
import json
|
import json
|
||||||
import sys
|
import os
|
||||||
import time
|
|
||||||
from shlex import quote
|
from shlex import quote
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
from pyfzf.pyfzf import FzfPrompt
|
from pyfzf.pyfzf import FzfPrompt
|
||||||
|
@ -122,21 +121,22 @@ Insert token from "Access token" here''')
|
||||||
|
|
||||||
current_instance.select_instance(instance)
|
current_instance.select_instance(instance)
|
||||||
if selected == 'Donate':
|
if selected == 'Donate':
|
||||||
print('Support instance message:')
|
os.system(f'less <<EOF\nSupport instance message:\n{support_message}')
|
||||||
print(support_message)
|
|
||||||
input()
|
|
||||||
if selected == 'About instance':
|
if selected == 'About instance':
|
||||||
|
about_instance_info = []
|
||||||
for i in ins_settings:
|
for i in ins_settings:
|
||||||
k, v = i.get('verbose_name'), i.get('value')
|
k, v = i.get('verbose_name'), i.get('value')
|
||||||
print(f'{k}: {v}')
|
about_instance_info.append(f'{k}: {v}')
|
||||||
print('|||||Some stats:')
|
about_instance_info.append('|||||Some stats:')
|
||||||
for k, v in ins_nodeinfo['metadata']['usage'].items():
|
for k, v in ins_nodeinfo['metadata']['usage'].items():
|
||||||
print(f'{k}: {v}')
|
about_instance_info.append(f'{k}: {v}')
|
||||||
for k, v in ins_nodeinfo['metadata']['library'].items():
|
for k, v in ins_nodeinfo['metadata']['library'].items():
|
||||||
print(f'{k}: {v}')
|
about_instance_info.append(f'{k}: {v}')
|
||||||
for k, v in ins_nodeinfo['usage'].items():
|
for k, v in ins_nodeinfo['usage'].items():
|
||||||
print(f'{k}: {v}')
|
about_instance_info.append(f'{k}: {v}')
|
||||||
input()
|
about_instance_info = '\n'.join(about_instance_info)
|
||||||
|
os.system(f'less <<EOF\n{about_instance_info}')
|
||||||
|
del about_instance_info
|
||||||
if selected == 'Player':
|
if selected == 'Player':
|
||||||
src.mpv_control.player_menu(
|
src.mpv_control.player_menu(
|
||||||
storage=src.mpv_control.player_fw_storage.storage)
|
storage=src.mpv_control.player_fw_storage.storage)
|
||||||
|
|
|
@ -35,7 +35,6 @@ class current_instance:
|
||||||
token = auth.get(instance)
|
token = auth.get(instance)
|
||||||
listen_token = None
|
listen_token = None
|
||||||
|
|
||||||
|
|
||||||
@logger.catch
|
@logger.catch
|
||||||
def select_instance(new_instance=None):
|
def select_instance(new_instance=None):
|
||||||
current_instance.instance = new_instance
|
current_instance.instance = new_instance
|
||||||
|
|
Loading…
Reference in New Issue