Add extra junk at the end of song node
authorCameron Ball <cameron@cameron1729.xyz>
Sun, 10 Mar 2019 09:36:35 +0000 (17:36 +0800)
committerCameron Ball <cameron@cameron1729.xyz>
Sun, 10 Mar 2019 09:36:35 +0000 (17:36 +0800)
ScoreSync.sh

index 00de3a0..0ed8f84 100755 (executable)
@@ -164,7 +164,7 @@ if [ "$1" = "apply" ]; then
             song=$(echo $j | rev | cut -sd : -f3 | rev | cut -sd / -f2)
             song_dir="Songs/${persons_folder}/${song}/"
             new_nodes="$new_nodes\n<Song Dir=\"$song_dir\" >\
-\n<Steps Difficulty=\"$song_difficulty\" StepsType=\"dance-single\" >\
+\n<Steps Difficulty=\"$song_difficulty\" StepsType=\"$song_steps_type\" >\
 \n<HighScoreList>\
 \n<HighScore>\
 \n<Name>$song_pranker</Name>\
@@ -227,7 +227,7 @@ if [ "$1" = "apply" ]; then
                 done
             done
 
-            new_nodes="$new_nodes\n</Song>"
+            new_nodes="$new_nodes\n<LastPlayed>2019-03-10</LastPlayed>\n<NumTimesPlayed>1</NumTimesPlayed>\n</Song>"
         fi
     done