renamed funkwhale-cli -> funkwlmpv

This commit is contained in:
localhost_frssoft 2023-08-03 11:35:37 +03:00
parent 230d92f399
commit a99cd9fd57
5 changed files with 6 additions and 6 deletions

View file

@ -32,7 +32,7 @@ class current_instance:
s = requests.Session()
s.headers.update({
"Accept-encoding": 'gzip, br, deflate',
"User-Agent": "funkwhale-cli/latest-commit; +https://git.phreedom.club/localhost_frssoft/funkwhale-cli"
"User-Agent": "funkwlmpv/latest-commit; +https://git.phreedom.club/localhost_frssoft/funkwlmpv"
})
instance = get_config('instance')
token = auth.get(instance)

View file

@ -77,7 +77,7 @@ def fetch_instances_nodeinfo_and_avalaibility(instances):
return requests.get('https://' + instance + '/api/v1/instance/nodeinfo/2.0/',
headers={
'Accept-Encoding': 'gzip, brotli, deflate',
'User-Agent': 'funkwhale-cli/latest-commit; +https://git.phreedom.club/localhost_frssoft/funkwhale-cli'},
'User-Agent': 'funkwlmpv/latest-commit; +https://git.phreedom.club/localhost_frssoft/funkwlmpv'},
timeout=10).json()
with concurrent.futures.ThreadPoolExecutor() as executor: # optimally defined number of threads

View file

@ -69,7 +69,7 @@ def send_listen_activity():
tags = ' '.join(tags)
if tags == []:
tags = ''
status_obj = {'spoiler_text': 'funkwhale-cli music share',
status_obj = {'spoiler_text': 'funkwlmpv music share',
'visibility': 'unlisted',
'status': f'🎧 {artist} - {album} - {title}\n{fid}\n#NowPlaying {tags}'}
requests.post(f'https://{share_to_fediverse_instance}/api/v1/statuses',