Compare commits

..

No commits in common. "bdebbcf2b3d35c4f4c2d424f1e89c0f1ae0a3aed" and "174c2311dab39611ca354b17bb9a33fcbdd3d94b" have entirely different histories.

3 changed files with 4 additions and 5 deletions

View File

@ -16,7 +16,6 @@ from shlex import quote
from shutil import get_terminal_size
from pyfzf.pyfzf import FzfPrompt
os.environ['FZF_DEFAULT_OPTS'] = "--margin 2,0,0,0 --preview-window down:2:hidden:wrap --bind ?:toggle-preview --preview 'echo {}'"
fzf = FzfPrompt()
os.system('clear')

View File

@ -87,11 +87,10 @@ def get_node_info():
@logger.catch
def get_audio_file(track_uuid, listen_url=False, download=False,
external_transcoding=get_config('external_transcoder_http_proxy_path'),
transcoding=get_config('enable_server_transcoding'), to='ogg', max_bitrate=128):
transcoding=get_config('enable_server_transcoding'), to='ogg'):
params = {
"download": download,
"to": to,
"max_bitrate": max_bitrate
"to": to
}
if current_instance.token and not current_instance.listen_token:
get_me()
@ -100,7 +99,6 @@ def get_audio_file(track_uuid, listen_url=False, download=False,
if not transcoding:
del params['to']
del params['max_bitrate']
if listen_url:
url = f'https://{current_instance.instance}{track_uuid}?'
else:

View File

@ -8,7 +8,9 @@ from shlex import quote
import mpv
import time
import re
import os
os.environ['FZF_DEFAULT_OPTS'] = '--margin 2,0,0,0'
fzf = FzfPrompt()
if get_config('enable_persistent_cache'):