home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
MPExtended
Help on "GetArtwork"
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Oxan" data-source="post: 994328" data-attributes="member: 97484"><p>Our API doesn't take all data as a single JSON object in the data parameter, but you need to pass them all individually as a parameter in the query string. So for example, you'll need to load GetArtwork?mediatype=7&provider=4&id=X&artworktype=4&offset=0.</p><p></p><p>Confusingly, the "id" parameter isn't the id of the artwork you want, but the id of the media item with which the artwork is associated (i.e. the album id if you want an album cover). Likewise, mediatype should be the type of media with which the artwork is associated (that will be 7 for an album, see <a href="https://github.com//MPExtended/blob/master/Services/MPExtended.Services.Common.Interfaces/WebMediaType.cs" target="_blank">the list</a>). Also, artworktype shouldn't be the file format, but the type of artwork you want (that's 4 for a cover, see <a href="https://github.com//MPExtended/blob/master/Services/MPExtended.Services.Common.Interfaces/WebFileType.cs" target="_blank">the list</a>). I can understand the confusion; the names aren't very clear and it's poorly documented.</p></blockquote><p></p>
[QUOTE="Oxan, post: 994328, member: 97484"] Our API doesn't take all data as a single JSON object in the data parameter, but you need to pass them all individually as a parameter in the query string. So for example, you'll need to load GetArtwork?mediatype=7&provider=4&id=X&artworktype=4&offset=0. Confusingly, the "id" parameter isn't the id of the artwork you want, but the id of the media item with which the artwork is associated (i.e. the album id if you want an album cover). Likewise, mediatype should be the type of media with which the artwork is associated (that will be 7 for an album, see [url=https://github.com//MPExtended/blob/master/Services/MPExtended.Services.Common.Interfaces/WebMediaType.cs]the list[/url]). Also, artworktype shouldn't be the file format, but the type of artwork you want (that's 4 for a cover, see [url=https://github.com//MPExtended/blob/master/Services/MPExtended.Services.Common.Interfaces/WebFileType.cs]the list[/url]). I can understand the confusion; the names aren't very clear and it's poorly documented. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
MPExtended
Help on "GetArtwork"
Contact us
RSS
Top
Bottom