Fixed problematic characters in mpc status output

This commit is contained in:
Francesco Minnocci 2020-08-02 19:52:57 +02:00
parent ad7d7a592d
commit 1265c0145f
1 changed files with 7 additions and 7 deletions

2
kunst
View File

@ -108,7 +108,7 @@ get_cover_online() {
# If the current playing song ends with .mp3 or something similar, remove # If the current playing song ends with .mp3 or something similar, remove
# it before searching for the album art because including the file extension # it before searching for the album art because including the file extension
# reduces the chance of good results in the search query # reduces the chance of good results in the search query
QUERY=$(mpc current | sed 's/\.[^.]*$//') QUERY=$(mpc current | sed 's/\.[^.]*$//' | iconv -t ascii//TRANSLIT -f utf8)
# Try to get the album cover online from api.deezer.com # Try to get the album cover online from api.deezer.com
API_URL="https://api.deezer.com/search/autocomplete?q=$QUERY" && API_URL=${API_URL//' '/'%20'} API_URL="https://api.deezer.com/search/autocomplete?q=$QUERY" && API_URL=${API_URL//' '/'%20'}