jensenkd / plex-api

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

How do we pull album art and such? #81

Open BradChase2011 opened 2 years ago

BradChase2011 commented 2 years ago

Sorry newbie here but I couldnt seem to find any examples or test cases to pull the album and thumbnail artwork down? Is there a simple http I am missing? For music, as of now I have the artist information pulled down with the Art property filled in, but cant seem how to display the image without some bytes or http address.

Thanks much! Btw it was really easy to setup the library and get it running quickly.

EDIT: The easiest way that I have found so far is to rebuild the Art property with an http uri combined with the X-Plex-Token at the end. I didnt know if there is a better way?

EDIT2: Side note, how do we get albums by an artist? I tried using the PlexLibraryClient.LibrarySearch(...) using no title and a filter request with Filter = "artist" and value of the Artist's Metadata.Title but it returns other artist's albums. Addition, I figured I can get them with using a filter on artist.id == Artist.RatingKey. Would the best practice to inherit our own PlexLibraryClient?