|
@@ -315,20 +315,30 @@ namespace SongBrowserPlugin
|
|
_log.Exception("FAILED TO CONVERT FAVORITES TO PLAYLIST!", e);
|
|
_log.Exception("FAILED TO CONVERT FAVORITES TO PLAYLIST!", e);
|
|
}
|
|
}
|
|
|
|
|
|
- // load the current editing playlist
|
|
|
|
|
|
+ // load the current editing playlist or make one
|
|
if (!String.IsNullOrEmpty(this.Settings.currentEditingPlaylistFile))
|
|
if (!String.IsNullOrEmpty(this.Settings.currentEditingPlaylistFile))
|
|
{
|
|
{
|
|
CurrentEditingPlaylist = PlaylistsReader.ParsePlaylist(this.Settings.currentEditingPlaylistFile);
|
|
CurrentEditingPlaylist = PlaylistsReader.ParsePlaylist(this.Settings.currentEditingPlaylistFile);
|
|
- if (CurrentEditingPlaylist != null)
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (CurrentEditingPlaylist == null)
|
|
|
|
+ {
|
|
|
|
+ CurrentEditingPlaylist = new Playlist
|
|
{
|
|
{
|
|
- CurrentEditingPlaylistLevelIds = new HashSet<string>();
|
|
|
|
- foreach (PlaylistSong ps in CurrentEditingPlaylist.Songs)
|
|
|
|
- {
|
|
|
|
- CurrentEditingPlaylistLevelIds.Add(ps.LevelId);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ Title = "Song Browser Favorites",
|
|
|
|
+ Author = "SongBrowserPlugin",
|
|
|
|
+ Path = this.Settings.currentEditingPlaylistFile,
|
|
|
|
+ Image = Base64Sprites.PlaylistIcon,
|
|
|
|
+ Songs = new List<PlaylistSong>(),
|
|
|
|
+ };
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ CurrentEditingPlaylistLevelIds = new HashSet<string>();
|
|
|
|
+ foreach (PlaylistSong ps in CurrentEditingPlaylist.Songs)
|
|
|
|
+ {
|
|
|
|
+ CurrentEditingPlaylistLevelIds.Add(ps.LevelId);
|
|
|
|
+ }
|
|
|
|
+
|
|
// Actually sort and filter
|
|
// Actually sort and filter
|
|
this.ProcessSongList();
|
|
this.ProcessSongList();
|
|
|
|
|