Fix thumbnail when downloading in GUI
For Hidive
This commit is contained in:
parent
e9e368f197
commit
dbf1640c1b
2 changed files with 3 additions and 1 deletions
1
@types/hidiveTypes.d.ts
vendored
1
@types/hidiveTypes.d.ts
vendored
|
|
@ -41,6 +41,7 @@ export interface HidiveStreamInfo extends HidiveStreamList {
|
|||
season?: number;
|
||||
episodeNumber?: number;
|
||||
uncut?: boolean;
|
||||
image?: string;
|
||||
}
|
||||
|
||||
export interface HidiveSubtitleInfo {
|
||||
|
|
|
|||
|
|
@ -451,6 +451,7 @@ export default class Hidive implements ServiceClass {
|
|||
videoinfo.season = parseFloat(selectedEpisode.SeasonNumberValue+'');
|
||||
videoinfo.episodeNumber = parseFloat(selectedEpisode.EpisodeNumberValue+'');
|
||||
videoinfo.uncut = videodetails[0] == 'Home Video' ? true : false;
|
||||
videoinfo.image = selectedEpisode.ScreenShotSmallUrl;
|
||||
console.info(`[INFO] Selected release: ${videodetails[0]} ${videodetails[1]}`);
|
||||
selectedVideoUrls.push(videoinfo);
|
||||
});
|
||||
|
|
@ -652,7 +653,7 @@ export default class Hidive implements ServiceClass {
|
|||
override: options.force,
|
||||
callback: options.callbackMaker ? options.callbackMaker({
|
||||
fileName: `${path.isAbsolute(outFile) ? outFile.slice(this.cfg.dir.content.length) : outFile}`,
|
||||
image: '',
|
||||
image: videoData.image,
|
||||
parent: {
|
||||
title: videoData.seriesTitle
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue