jensenkd / plex-api

.NET Core SDK for Plex Media Server
MIT License
87 stars 27 forks source link

MetadataKey are strings not ints #11

Closed bakes82 closed 3 years ago

bakes82 commented 4 years ago

When trying to get children data the method wants an int, but the value is a string, Im using the RatingKey. Key is also a string, but doesnt look like the real key.

var metadatas = plexApi.GetChildrenMetadata(string authToken, string plexServerHost, int metadataKey).Result;

image

jensenkd commented 4 years ago

RatingKey is what you'll want. You'll have to convert the string to an int. There is an open issue on cleaning up types: https://github.com/jensenkd/plex-api/issues/5