mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-01 00:35:07 +02:00
Cleanup and remove more vars
This commit is contained in:
parent
45c9038954
commit
775dedc338
5 changed files with 18 additions and 33 deletions
|
@ -92,7 +92,7 @@ class PodcastEpisode {
|
|||
}
|
||||
|
||||
get audioTrack() {
|
||||
var audioTrack = new AudioTrack()
|
||||
const audioTrack = new AudioTrack()
|
||||
audioTrack.setData(this.libraryItemId, this.audioFile, 0)
|
||||
return audioTrack
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ class PodcastEpisode {
|
|||
}
|
||||
|
||||
update(payload) {
|
||||
var hasUpdates = false
|
||||
let hasUpdates = false
|
||||
for (const key in this.toJSON()) {
|
||||
if (payload[key] != undefined && payload[key] != this[key]) {
|
||||
this[key] = payload[key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue