Jump to content

Need to get TVDB ID at Post Recording Time (Script)


Go to solution Solved by Luke,

Recommended Posts

Posted

I can write the script, but, I need to find a way to get the TVDB series id at post recording script time. I can't find an API to do so though there may be one. Can someone think of a way to do this?

  • Solution
Posted

I was just wondering if there was any way to fix this.

The recording will have a series id. You'd to use that to pull down the series object and then examine the ProviderIds.

Posted

So... I have access to the series id? Where!? Is it an environment variable perhaps? Or are you saying the recording has already been added to the database and I can find it via path there?

Posted

Correct it is in the database.

  • Thanks 1
Posted

Looks like I can get them via (for example):

https://emby-tv.mydomain.tld/emby/Items?Recursive=true&Fields=Path%2CProviderIds&Path=%2Frecordings%2FEmby-TV-Recordings%2FAmerican Ninja Warrior (2009)&api_key=myapikey

This gives me the providers ids for the series in one call. But, that presumes (say this is the first time recording a given series as it's new), that the metadata lookups are already done at post processing script time. We'll see!

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...