Jump to content

Recommended Posts

Posted

Hi

 

I try to change a plugin where use the emby API. In this I have

    @SerializedName("Name")
    private String name;
    @SerializedName("OriginalTitle")
    private String originalTitle;

My episodes name: S01E01 - My Title

and from the api name is only My Title. Givs a change to output the Session and episode?

 

Best regards

Koda

Posted

Hi, what are your ultimately trying to accomplish?

Posted

I have change the binding https://github.com/volfan6415/openHAB-EMBY for me.

In this binding it givs a variable showtitle

 

My Episode File: S01E01 - My Title

 

showtitle has this Output: My Title

 

I wish to have the output: S01E01 - My Title

Or a new variable with the episode and season. But I don't know where in the API I found this value

Posted

These fields might help:

IndexNumber = episode number

ParentIndexNumber = season number

SeasonName

SeriesName

Name = episode title

Posted

@Luke: Thank you. This work. GIvs a list with all this parameters in NowPlayingItem?

 

And givs options to get information for the serie? So I think how many episodes exist on this season or how many seasons exists?

Posted

Hi, why not just pull it down and examine it?

Guest Koda
Posted (edited)
I inserted the binding and changed all the options I wanted. Your options above were perfect.

 

My question was generally if there is an overview of the available options of the API, and if there is a way to find out how many seasons the whole series has, and how many episodes the current season has.

 

Sorry for my bad confused english

Edited by Koda
Posted

Have you checked out swagger?

Guest Koda
Posted (edited)

Yes. I have look at http://swagger.emby.media/?staticview=true

@@chef

But I dont find the part where NowPlayingItem or seasonname and ParentIndexNumber is.

I search this, that I understand how the binding work

But in Swagger I don't see a nowPlayingItemService or so

 

EDIT: OK. I see it is SessionService :)

Edited by Luke

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...