Commit 84946309 authored by Soomin Lee's avatar Soomin Lee

PlaylistModel: Check for duplicate

parent 1bc267a0
......@@ -27,6 +27,11 @@ class PlaylistModel: MLBaseModel {
}
func append(_ item: VLCMLPlaylist) {
for file in files {
if file.identifier() == item.identifier() {
return
}
}
files.append(item)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment