Help with API Request to check for episode

I’ve completely rewrote my backend handling and encoding system from python to powershell. One of the new pieces of functionality (and last unfinished piece) that I am adding is for my backend to check whether an episode really exists before wasting time processing it.

For example, Show A has 15 episodes in season one, but somehow Show A - S01E16 has landed in my processing folder.

I need to query sonarr to check if Show A season 1 has an episode 16 or not and if it does, process as normal, if it doesn’t, it will handle it another way.

I have access to the show name, season, episode, and tvbd id that can help with the query. I just don’t know the syntax to try to grab the true or false information from sonarr to whether it exists or not.

and before you tell me to just query thetvdb, well the idea is to cut down on external queries.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.