Ordering songs and artists
This way the order won't keep changing
This commit is contained in:
parent
869192da61
commit
75cf86b363
1 changed files with 3 additions and 2 deletions
|
@ -79,8 +79,9 @@ namespace HiddenUpdater
|
|||
}
|
||||
|
||||
//Console.WriteLine(artistJson.ToString(Formatting.None));
|
||||
File.WriteAllText("songs.json", playlistJson.ToString());
|
||||
File.WriteAllText("artists.json", new JArray(artistJson.Children().Select(tk=>tk.Last)).ToString());
|
||||
File.WriteAllText("songs.json", new JArray(playlistJson.OrderBy(song=>song["sid"])).ToString());
|
||||
File.WriteAllText("artists.json", new JArray(artistJson.Children().Select(tk=>tk.Last)
|
||||
.OrderBy(artist=>artist["sname"])).ToString());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue