Remove the requirement for TMDB to have IMDB and TVDB IDs
You didn’t check or communicate with TMDB to fully understand their rules and processes.
This is a problem that needs to be fixed/removed. It seems like you’re relying on TMDB but not relying on them.
For example they treat American Idol as two separate shows while TVDB and others do not. This means they will not add those values into the new show because they can’t have duplicate values.
They do this for most network changes for a show. This means that many shows like this will no longer function in trakt.
Remove this requirement, restriction, or process.
If you’re looking for duplicates set a search check to prevent the exact name from showing up twice, allowing for admin override. This is easily done. I’ve worked with developers to accomplish this and with LLMs (it’s not really AI) it’s even easier.