From 75ac89489ec6a187ed18b88dc22baaeec16cdada Mon Sep 17 00:00:00 2001 From: iPromKnight Date: Sun, 10 Mar 2024 23:34:28 +0000 Subject: [PATCH] [skip ci] Final hotfix --- src/node/consumer/src/lib/services/torrent_entries_service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/node/consumer/src/lib/services/torrent_entries_service.ts b/src/node/consumer/src/lib/services/torrent_entries_service.ts index 3958e7e..60f9236 100644 --- a/src/node/consumer/src/lib/services/torrent_entries_service.ts +++ b/src/node/consumer/src/lib/services/torrent_entries_service.ts @@ -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}`));