Amélioration de la requête Pleroma scrobble
This commit is contained in:
parent
a57cebca97
commit
92133d8471
3 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
||||||
# Vidéo
|
# Vidéo
|
||||||
profile=gpu-hq
|
profile=gpu-hq
|
||||||
gpu-context=x11vk
|
|
||||||
scale=ewa_lanczossharp
|
scale=ewa_lanczossharp
|
||||||
cscale=ewa_lanczossharp
|
cscale=ewa_lanczossharp
|
||||||
#video-sync=display-resample
|
#video-sync=display-resample
|
||||||
|
|
|
@ -42,6 +42,8 @@ privilegeescalationtool = sudo
|
||||||
privilegeescalationtarget = pikaur
|
privilegeescalationtarget = pikaur
|
||||||
userid = 0
|
userid = 0
|
||||||
preserveenv = PKGDEST,VISUAL,EDITOR,http_proxy,https_proxy,ftp_proxy,HTTP_PROXY,HTTPS_PROXY,FTP_PROXY,ALL_PROXY
|
preserveenv = PKGDEST,VISUAL,EDITOR,http_proxy,https_proxy,ftp_proxy,HTTP_PROXY,HTTPS_PROXY,FTP_PROXY,ALL_PROXY
|
||||||
|
cachepath = /home/breizh/.cache
|
||||||
|
datapath = /home/breizh/.local/share
|
||||||
|
|
||||||
[network]
|
[network]
|
||||||
aururl = https://aur.archlinux.org
|
aururl = https://aur.archlinux.org
|
||||||
|
|
|
@ -23,7 +23,7 @@ do
|
||||||
artist="${infos[0]}"
|
artist="${infos[0]}"
|
||||||
title="${infos[1]:-${infos[3]}}"
|
title="${infos[1]:-${infos[3]}}"
|
||||||
album="${infos[2]}"
|
album="${infos[2]}"
|
||||||
length="$(( ${infos[4]%%:*} * 60 + ${infos[4]##*:} ))"
|
[[ -n "${infos[4]}" ]] && length="$(( ${infos[4]%%:*} * 60 + ${infos[4]##*:} ))"
|
||||||
|
|
||||||
# Si on obtiens un chemin absolu, on n’affiche que le nom, pas
|
# Si on obtiens un chemin absolu, on n’affiche que le nom, pas
|
||||||
# le chemin.
|
# le chemin.
|
||||||
|
@ -45,7 +45,7 @@ do
|
||||||
--data-urlencode "title=${title}" \
|
--data-urlencode "title=${title}" \
|
||||||
--data-urlencode "artist=${artist}" \
|
--data-urlencode "artist=${artist}" \
|
||||||
--data-urlencode "album=${album}" \
|
--data-urlencode "album=${album}" \
|
||||||
--data-urlencode "length=${length}" \
|
${length:+--data-urlencode "length=${length:-null}"} \
|
||||||
https://pleroma.breizh.pm/api/v1/pleroma/scrobble &>/dev/null
|
https://pleroma.breizh.pm/api/v1/pleroma/scrobble &>/dev/null
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue