Merge pull request #420 from nwithan8/track_title

Track title rather than album title in XML
This commit is contained in:
vexorian 2022-06-01 17:47:57 -04:00 committed by GitHub
commit 32ddac1df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -562,6 +562,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

@ -312,7 +312,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,