mirror of
https://github.com/chrisbenincasa/tunarr.git
synced 2026-04-18 09:03:35 -04:00
fix: correctly mint ContentPrograms for unsaved channel programming
This commit is contained in:
@@ -159,7 +159,7 @@ export class ApiProgramMinter {
|
||||
);
|
||||
|
||||
const season = episode.season;
|
||||
const show = season.show;
|
||||
const show = season.show ?? episode.show;
|
||||
|
||||
return {
|
||||
date: episode.releaseDate
|
||||
@@ -222,7 +222,7 @@ export class ApiProgramMinter {
|
||||
);
|
||||
|
||||
const album = track.album;
|
||||
const artist = album.artist;
|
||||
const artist = album.artist ?? track.album;
|
||||
|
||||
return {
|
||||
date: track.releaseDate ? dayjs(track.releaseDate).format() : undefined,
|
||||
|
||||
Reference in New Issue
Block a user