Merge pull request #41 from BachoSeven/master

Fixed problematic characters in mpc status output
This commit is contained in:
Siddharth Dushantha 2020-08-02 21:01:37 +02:00 committed by GitHub
commit 1a48c25f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'}