Skip to content

Commit

Permalink
- Show track title rather than album title on XML for songs
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 committed May 31, 2022
1 parent 382a379 commit 88f0363
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/services/tv-guide-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
1 change: 1 addition & 0 deletions src/xmltv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion web/controllers/guide.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 88f0363

Please sign in to comment.