Update Playlist.js
This commit is contained in:
parent
d9dc411cfd
commit
905b45f7fe
|
@ -32,13 +32,9 @@ module.exports = class Playlist {
|
|||
|
||||
save() {
|
||||
const original = file.read(this.url)
|
||||
const output = this.toString({ raw: true })
|
||||
if (original === output) {
|
||||
return false
|
||||
} else {
|
||||
const output = this.toString()
|
||||
if (original !== output) {
|
||||
file.create(this.url, output)
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue