Merge pull request #146 from Gabisonfire/hotfix/default_season_1

[skip ci] Final hotfix
This commit is contained in:
iPromKnight
2024-03-10 23:34:41 +00:00
committed by GitHub

View File

@@ -96,6 +96,9 @@ export class TorrentEntriesService implements ITorrentEntriesService {
newVideo.kitsuId = 0;
newVideo.kitsuEpisode = 0;
}
if (newVideo.imdbEpisode && !newVideo.imdbSeason) {
newVideo.imdbSeason = 1;
}
return this.repository.createFile(newVideo)
})))
.then(() => this.logger.info(`Created ${torrent.provider} entry for [${torrent.infoHash}] ${torrent.title}`));