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 2
Plugin Development
Implementing support for local fanart
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="morpheus_xx" data-source="post: 982070" data-attributes="member: 48495"><p>MP2 already supports online sources to download information about movies and series, along with fanart images.</p><p> </p><p>We also have a MedadataExtractor ("MDE") plugin (<a href="https://forum.team-mediaportal.com/threads/nfo-metadata-extractor-plugin.110673/" target="_blank">https://forum.team-mediaportal.com/threads/nfo-metadata-extractor-plugin.110673/</a>) to read .nfo files. This is used to fill in movie details, like full name, year, cast, rating a.s.o.</p><p>But fanart is missing in this support. Here's a good quote (german post) why we should support local fanart:</p><p></p><p> </p><p><strong><u><span style="font-size: 12px">How does MP2 deal with fanart?</span></u></strong></p><p> </p><p><u>Import:</u></p><ul> <li data-xf-list-type="ul">MDEs are running in specific order: "low level" to detect video files, "extended" to read external local content (like .nfo, .xml) and "online" which downloads content</li> <li data-xf-list-type="ul">MDEs detect movies and series and download information from internet. The result is stored in local cache.</li> <li data-xf-list-type="ul">The matching of original title <-> online resource is also stored locally and will be used for identifying the associated fanart to given movie name later</li> </ul><p><u>Storage:</u></p><ul> <li data-xf-list-type="ul">Retrieved content is stored inside so called MediaAspects (MovieAspect, SeriesAspect). It also contains info like IMDBID</li> </ul><p><u>Fanart in MP2-Client GUI:</u></p><ul> <li data-xf-list-type="ul">Each MediaItem has a style attached, where they layout is defined: like thumbnail source, title, size or what we like to show. We can use any available property from all MediaAspects. For loading fanart we are currently using only the movie/series name to load poster, banners or fanart backgrounds. Example: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/Titanium/Skin/Titanium/themes/default/styles/MediaStyles.xaml#L819-L820" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/Titanium/Skin/Titanium/themes/default/styles/MediaStyles.xaml#L819-L820</a></li> </ul><p>The fanart image is retrieved via http from MP2-Server. The full chain is like this:</p><p> </p><p><strong>[Style] -> [FanartImageSource] -> http -> [FanartService] -> [IFanartProvider] -> local storage (library cache)</strong></p><p> </p><p>There are already multiple IFanartProviders registered (series, movies, TV channel logos), all implement the interface: <a href="https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/FanArtService.Interfaces/IFanArtService.cs#L53-L71" target="_blank">https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/FanArtService.Interfaces/IFanArtService.cs#L53-L71</a></p><p> </p><p>To add support for local fanart storage, a new IFanartProvider must be developed that is able to lookup correct results from local filesystem.</p><p> </p><p>Current implementation has a problem with this approach: the fanart is only loaded by "Name". So we probably need to extent this interface to pass other information, like MediaItem's GUID, which can be used to look into MediaLibrary for real local filesystem path and than check for associated fanart.</p><p> </p><p>@<a href="https://forum.team-mediaportal.com/members/hafblade.110423/" target="_blank">hafblade</a>, would you like to continue your work on <a href="https://forum.team-mediaportal.com/threads/nfo-metadata-extractor-plugin.110673/" target="_blank">https://forum.team-mediaportal.com/threads/nfo-metadata-extractor-plugin.110673/</a> and extend it with "local fanart" support? I think @<a href="https://forum.team-mediaportal.com/members/lehmden.109222/" target="_blank">Lehmden</a> can provide help and probably a good testing playground for this feature <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p> </p><p>I'm ready to extend/change fanart retrieval to use more detailed parameters then the plain "Name" only.</p><p> </p><p>What do you think about this idea?</p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 982070, member: 48495"] MP2 already supports online sources to download information about movies and series, along with fanart images. We also have a MedadataExtractor ("MDE") plugin ([url]https://forum.team-mediaportal.com/threads/nfo-metadata-extractor-plugin.110673/[/url]) to read .nfo files. This is used to fill in movie details, like full name, year, cast, rating a.s.o. But fanart is missing in this support. Here's a good quote (german post) why we should support local fanart: [B][U][SIZE=3]How does MP2 deal with fanart?[/SIZE][/U][/B] [U]Import:[/U] [LIST] [*]MDEs are running in specific order: "low level" to detect video files, "extended" to read external local content (like .nfo, .xml) and "online" which downloads content [*]MDEs detect movies and series and download information from internet. The result is stored in local cache. [*]The matching of original title <-> online resource is also stored locally and will be used for identifying the associated fanart to given movie name later [/LIST] [U]Storage:[/U] [LIST] [*]Retrieved content is stored inside so called MediaAspects (MovieAspect, SeriesAspect). It also contains info like IMDBID [/LIST] [U]Fanart in MP2-Client GUI:[/U] [LIST] [*]Each MediaItem has a style attached, where they layout is defined: like thumbnail source, title, size or what we like to show. We can use any available property from all MediaAspects. For loading fanart we are currently using only the movie/series name to load poster, banners or fanart backgrounds. Example: [url]https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/Titanium/Skin/Titanium/themes/default/styles/MediaStyles.xaml#L819-L820[/url] [/LIST] The fanart image is retrieved via http from MP2-Server. The full chain is like this: [B][Style] -> [FanartImageSource] -> http -> [FanartService] -> [IFanartProvider] -> local storage (library cache)[/B] There are already multiple IFanartProviders registered (series, movies, TV channel logos), all implement the interface: [url]https://github.com/MediaPortal/MediaPortal-2/blob/dev/MediaPortal/Incubator/FanArtService.Interfaces/IFanArtService.cs#L53-L71[/url] To add support for local fanart storage, a new IFanartProvider must be developed that is able to lookup correct results from local filesystem. Current implementation has a problem with this approach: the fanart is only loaded by "Name". So we probably need to extent this interface to pass other information, like MediaItem's GUID, which can be used to look into MediaLibrary for real local filesystem path and than check for associated fanart. @[URL='https://forum.team-mediaportal.com/members/hafblade.110423/']hafblade[/URL], would you like to continue your work on [url]https://forum.team-mediaportal.com/threads/nfo-metadata-extractor-plugin.110673/[/url] and extend it with "local fanart" support? I think @[URL='https://forum.team-mediaportal.com/members/lehmden.109222/']Lehmden[/URL] can provide help and probably a good testing playground for this feature ;) I'm ready to extend/change fanart retrieval to use more detailed parameters then the plain "Name" only. What do you think about this idea? :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Implementing support for local fanart
Contact us
RSS
Top
Bottom