Browse Source

API: Added option to inject genere tag from external sources for tracks

main
RemixDev 1 month ago
parent
commit
a47278ce65
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      deemix/types/Track.js

+ 5
- 0
deemix/types/Track.js View File

@ -165,6 +165,11 @@ class Track {
if (this.album.date && !this.date) this.date = this.album.date
if (!this.album.discTotal) this.album.discTotal = albumAPI_gw.NUMBER_DISK || "1"
if (!this.copyright) this.copyright = albumAPI_gw.COPYRIGHT
if (trackAPI_gw.GENRES){
trackAPI_gw.GENRES.forEach((genre) => {
if (!this.album.genre.includes(genre)) this.album.genre.push()
})
}
this.parseTrack(trackAPI)
}


Loading…
Cancel
Save