Skip to content

Commit

Permalink
updated spotify_backup_playlist.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Mar 1, 2022
1 parent 329bd99 commit 41bdc0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spotify_backup_playlist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ else

filename="$("$srcdir/spotify_playlist_to_filename.sh" <<< "$playlist_name")"

# XXX: bugfix for 'illegal byte sequence error' for weird unicode chars in the filename
filename="$(sed 's/[^[:alnum:][:space:]!"$&'"'"'()+,.\/:<_|–\∕-]/-/g' <<< "$filename")"
#echo "Saving to filename: $filename"

echo -n "=> Description "
description_file="$backup_dir/$filename.description"
"$srcdir/spotify_playlist_json.sh" "$playlist_id" | jq -r '.description' | tr -d '\n' > "$description_file"
Expand Down

0 comments on commit 41bdc0b

Please sign in to comment.