mirror of
https://github.com/iptv-org/iptv.git
synced 2026-09-29 23:15:19 -04:00
Update Playlist.js
This commit is contained in:
1 parent
d2bae0b46a
commit
13cd64e226
1 file changed
+2
-6
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user