- Show track title rather than album title on XML for songs
This commit is contained in:
parent
382a3796e1
commit
88f03638fb
@ -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') {
|
||||
|
||||
@ -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')
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user