Fixed problematic characters in mpc status output
This commit is contained in:
parent
ad7d7a592d
commit
1265c0145f
2
kunst
2
kunst
|
@ -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'}
|
||||||
|
|
Loading…
Reference in New Issue