mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-01-11 20:10:20 +00:00
[HD] Added fallback to seriesTitle
Added fallback to seriesTitle when seasonTitle cannot be parsed (usually due to the seasonNumber being wrong)
This commit is contained in:
parent
3aa844f90b
commit
141fdcf552
2 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ class HidiveHandler extends Base implements MessageHandler {
|
|||
lang: [],
|
||||
name: item.title,
|
||||
season: item.episodeInformation.seasonNumber+'',
|
||||
seasonTitle: request.series.seasons[item.episodeInformation.seasonNumber-1].title,
|
||||
seasonTitle: request.series.seasons[item.episodeInformation.seasonNumber-1]?.title ?? request.series.title,
|
||||
episode: item.episodeInformation.episodeNumber+'',
|
||||
id: item.id+'',
|
||||
img: item.thumbnailUrl,
|
||||
|
|
|
|||
|
|
@ -435,7 +435,7 @@ export default class Hidive implements ServiceClass {
|
|||
for (let i = 0; i < showData.length; i++) {
|
||||
const titleId = showData[i].id;
|
||||
const seriesTitle = getShowData.series.title;
|
||||
const seasonTitle = getShowData.series.seasons[showData[i].episodeInformation.seasonNumber-1]?.title;
|
||||
const seasonTitle = getShowData.series.seasons[showData[i].episodeInformation.seasonNumber-1]?.title ?? seriesTitle;
|
||||
let nameLong = showData[i].title;
|
||||
if (nameLong.match(/OVA/i)) {
|
||||
nameLong = 'ova' + (('0' + ovaSeq).slice(-2)); ovaSeq++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue