Skip to content

Commit

Permalink
Code Review Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rithik-b committed Jul 15, 2021
1 parent 4a77314 commit 7a02ba9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions Shared/PlaylistManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -809,18 +809,7 @@ public void StorePlaylist(IPlaylist playlist, IPlaylistHandler playlistHandler,
if (string.IsNullOrEmpty(fileName))
{
// Generate Name
fileName = string.Join("_", playlist.Title
.Replace("/", "")
.Replace("\\", "")
.Replace(".", "")
.Replace(":", "")
.Replace("*", "")
.Replace("?", "")
.Replace("\"", "")
.Replace("<", "")
.Replace(">", "")
.Replace("|", "")
.Split());
fileName = string.Join("_", string.Join("", playlist.Title.Split(Path.GetInvalidFileNameChars(), StringSplitOptions.RemoveEmptyEntries)).Split());
if (string.IsNullOrEmpty(fileName))
{
fileName = "playlist";
Expand Down
2 changes: 1 addition & 1 deletion Shared/Types/Playlist.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public IPlaylistSong this[int index]
public int Count => Songs.Count;

/// <inheritdoc/>
public virtual bool IsReadOnly => false;
public virtual bool IsReadOnly => ReadOnly;

/// <summary>
/// Creates a new <see cref="IPlaylistSong"/> of type <typeparamref name="T"/> from the given <paramref name="song"/>.
Expand Down

0 comments on commit 7a02ba9

Please sign in to comment.