1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-10-02 13:37:21 +02:00

Fix filenames

This commit is contained in:
GilbN 2024-09-15 21:23:57 +02:00
parent 2323cf8ff6
commit ca2bbfd3a7

View File

@ -54,8 +54,10 @@ download_favicon_files() {
local addon=$1
local urls=$(curl -s "${TP_SCHEME}://${TP_DOMAIN}/themes.json" | jq -r ".addons.sonarr[\"$addon\"].files[]?")
for url in $urls; do
wget -P "${APP_ICON_FILEPATH}" "$url"
printf 'Downloaded favicon: %s\n' "$url"
# Remove the query parameters from the URL
clean_url=$(echo "$url" | sed 's/\?.*//')
wget -P "${APP_ICON_FILEPATH}" "${clean_url}"
printf 'Downloaded favicon: %s\n' "${clean_url}"
done
}