while read -r song_path; do
just_song=$(echo $song_path | cut -sd / -f2)
+ crc32="$(echo -n "/Songs/${persons_folder}/${just_song}/" | gzip -c | tail -c8 | hexdump -n4 -e '"%u"')"
+
+ echo "${just_song} -> ${persons_folder}"
+ echo -e "\t${path_to_song_cache}/${crc32}"
+
+ rm "${path_to_song_cache}/${crc32}"
ln -s "$path_to_songs/$song_path" "$path_to_songs/$persons_folder/$just_song"
done <<< "$song_paths"
done
for add_path in "${!adds[@]}"; do
pack_dir=$(echo $add_path | cut -sd / -f1)
if ! [ -z "${removes[${add_path}]}" ]; then
- crc32="$(echo -n "${add_path}/" | gzip -c | tail -c8 | hexdump -n4 -e '"%u"')"
+ crc32="$(echo -n "/Songs/${add_path}/" | gzip -c | tail -c8 | hexdump -n4 -e '"%u"')"
echo "CACHE INVALIDATION NEEDED FOR ${add_path} : ${crc32}"
- rm "~/.openitg/Cache/Songs/${crc32}"
+ rm "${path_to_song_cache}/${crc32}"
fi
# The file existed previously, just move that over.
path_to_stats="/home/cameron/Projects/GrooveNet/Stats.jayce.xml"
faves_folder="- Favourites - Jayce"
external_favourite_naming_scheme="- Favourites - %person%"
+path_to_song_cache="/root/.openitg/Cache/Songs"