Commit 42020504 authored by Soomin Lee's avatar Soomin Lee

AudioModel: Check for duplicate before append

parent c83abf7c
......@@ -27,6 +27,11 @@ class AudioModel: MLBaseModel {
}
func append(_ item: VLCMLMedia) {
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