Closed lachlan2k closed 2 years ago
Currently, when existing TV Shows are imported by scan-library, every season gets stuck on "Searching", even though all files for that season are present:
This is because when tvEpisodeDAO.findOrCreate is called, it defaults to the SEARCHING state:
tvEpisodeDAO.findOrCreate
SEARCHING
https://github.com/iam4x/bobarr/blob/1f24631adcdb227819c5850b88a462d5d0b3125a/packages/api/src/modules/jobs/processors/scan-library.processor.ts#L411-L414
This PR addresses the issue by setting the state of seasons created during the scan process to PROCESSED.
PROCESSED
Thank you!
The Problem
Currently, when existing TV Shows are imported by scan-library, every season gets stuck on "Searching", even though all files for that season are present:
This is because when
tvEpisodeDAO.findOrCreate
is called, it defaults to theSEARCHING
state:https://github.com/iam4x/bobarr/blob/1f24631adcdb227819c5850b88a462d5d0b3125a/packages/api/src/modules/jobs/processors/scan-library.processor.ts#L411-L414
The Solution
This PR addresses the issue by setting the state of seasons created during the scan process to
PROCESSED
.