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