- Show track title rather than album title on XML for songs

This commit is contained in:
Nate Harris 2022-05-31 14:56:20 -06:00
parent 382a3796e1
commit 88f03638fb
3 changed files with 5 additions and 1 deletions

View File

@ -500,6 +500,9 @@ function makeEntry(channel, x) {
episode: x.program.episode,
title: x.program.title,
}
} else if (x.program.type === 'track') {
title = x.program.title;
// TODO: Add sub data for tracks here for XML writing
}
}
if (typeof(title)==='undefined') {

View File

@ -98,6 +98,7 @@ async function _writeProgramme(channel, program, xw, xmlSettings, cacheImageServ
xw.writeRaw('\n <previously-shown/>')
//sub-title
// TODO: Add support for track data (artist, album) here
if ( typeof(program.sub) !== 'undefined') {
xw.startElement('sub-title')
xw.writeAttribute('lang', 'en')

View File

@ -313,7 +313,7 @@ module.exports = function ($scope, $timeout, dizquetv) {
ch.programs.push( {
duration: addDuration(b - a),
altTitle: altTitle,
showTitle: program.title,
showTitle: program.title, // movie title, episode title or track title
subTitle: subTitle,
episodeTitle : episodeTitle,
start: hasStart,