Consolidate manifest properties

This commit is contained in:
srgooglo 2025-06-30 20:36:00 +02:00
parent 217d179ce9
commit 0d94ecc46d

View File

@ -45,12 +45,8 @@ export default class TrackManifest {
this.source = params.source this.source = params.source
} }
if (typeof params.dash_manifest !== "undefined") { if (typeof params.mpd_string !== "undefined") {
this.dash_manifest = params.dash_manifest this.mpd_string = params.mpd_string
}
if (typeof params.encoded_manifest !== "undefined") {
this.encoded_manifest = params.encoded_manifest
} }
if (typeof params.metadata !== "undefined") { if (typeof params.metadata !== "undefined") {
@ -196,8 +192,7 @@ export default class TrackManifest {
album: this.album, album: this.album,
artist: this.artist, artist: this.artist,
source: this.source, source: this.source,
dash_manifest: this.dash_manifest, mpd_string: this.mpd_string,
encoded_manifest: this.encoded_manifest,
metadata: this.metadata, metadata: this.metadata,
liked: this.liked, liked: this.liked,
service: this.service, service: this.service,