mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2025-05-07 20:38:41 +00:00
Instance title and donate button when starting
This commit is contained in:
parent
c4aaab97bf
commit
67aa2257cb
2 changed files with 32 additions and 3 deletions
|
@ -60,6 +60,12 @@ def select_instance(new_instance=None):
|
|||
set_http_header(['Authorization: ' + 'Bearer ' + token])
|
||||
|
||||
|
||||
@logger.catch
|
||||
def get_instance_settings():
|
||||
r = s.get(f'https://{instance}/api/v1/instance/settings')
|
||||
return r.json()
|
||||
|
||||
|
||||
@logger.catch
|
||||
def get_audio_file(track_uuid, listen_url=False, download=False,
|
||||
transcoding=get_config('enable_server_transcoding'), to='ogg'):
|
||||
|
@ -93,6 +99,7 @@ def get_tracks(page=None, q=None, artist=None, album=None, favourites=None, incl
|
|||
r = s.get(f'https://{instance}/api/v1/tracks', params=params)
|
||||
return r.json()
|
||||
|
||||
|
||||
@logger.catch
|
||||
def get_favorires_tracks(page=None, q=None, scope=None, include_channels=None, pg=None):
|
||||
'''This function get favorites tracks (not only for user)'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue