mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 10:30:03 -04:00
Update Playlist.js
This commit is contained in:
parent
d9dc411cfd
commit
905b45f7fe
1 changed files with 2 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue