Get fanart of playing media
#1
Hi,
i have another question:
Is there a way to access the fanart-path of the currently played movie/series? I am doing it via json right now, but its slow with large dbs, see here.
A lot of infos are available via "xbmc.Player().getVideoInfoTag()" / "xbmc.getInfoLabel('VideoPlayer.XXXXX')" / "xbmc.getInfoImage(VideoPlayer.XXXXX)", but the fanart is missing...

Thanks again,
asde
Reply
#2
The fanart is available on the item, not on the tag. Can you get the labeel and path info?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
(2012-06-06, 23:41)jmarshall Wrote: The fanart is available on the item, not on the tag.
Could you please give me a code example for receiving the item (fanart) on the currently playing media (not the selected item)?
I couldn't find anything on how to receive the currently playing ListItem.

The playing PlayListItem could be received with:
Code:
playListItem = playlist[playlist.getposition()]
but it does not contain the fanart-path.

(2012-06-06, 23:41)jmarshall Wrote: Can you get the labeel and path info?
Yes, the label is available via "xbmc.Player().getVideoInfoTag().getTitle()". "xbmc.Player().getVideoInfoTag().getPath()" returns an empty string. But its also available via xbmc.Player().getPlayingFile().
The label and the path are also available this way:
Code:
playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
title = playlist[playlist.getposition()].getdescription()
url = playlist[playlist.getposition()].getfilename()
Reply
#4
(2012-06-06, 23:41)jmarshall Wrote: The fanart is available on the item...
If its really available, does nobody know how to get it?
Please, i tried everything possible and have read all the online documents.

Cant get it working...
Reply
#5
(2012-06-06, 23:41)jmarshall Wrote: The fanart is available on the item...
Could you please reveal the secret of getting the fanart of the currently played media?
That would be really nice Wink
Reply
#6
Does JSON-RPC give it to you?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
(2012-06-20, 00:08)jmarshall Wrote: Does JSON-RPC give it to you?
(2012-06-06, 17:43)AddonScriptorDE Wrote: Hi,
i have another question:
Is there a way to access the fanart-path of the currently played movie/series? I am doing it via json right now, but its slow with large dbs, see here.
A lot of infos are available via "xbmc.Player().getVideoInfoTag()" / "xbmc.getInfoLabel('VideoPlayer.XXXXX')" / "xbmc.getInfoImage(VideoPlayer.XXXXX)", but the fanart is missing...

Thanks again,
asde
Sure, all other properties are directly available without json. Except the fanart...
Your first answer sounds like it could be done without the JSON-RPC.

So its not possible?
Reply
#8
I didn't say it could be done. I said it was in the same box as the label or path, neither of which are available correctly from python - you can get the title and the path according to the videoinfotag, but these are not the same as the items label and path (path most likely will be correct for many items, but may not necessarily always be correct). By the looks of things, you don't get access to the actual item playing, rather only it's videoinfotag which does not hold the information you want.

It makes no sense as a general infolabel, as the skin won't use it and you don't want to display the info. Thus, the correct place to put it is in some general "Player.GetMeAllTheInfoDamnit" or via JSON-RPC. I'm sure that fanart would be useful for the latter either way, and should already be possible I would have thought (you get an item, so should be able to get the metadata information for that item).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#9
(2012-06-20, 00:59)jmarshall Wrote: I didn't say it could be done. I said it was in the same box as the label or path, neither of which are available correctly from python - you can get the title and the path according to the videoinfotag, but these are not the same as the items label and path (path most likely will be correct for many items, but may not necessarily always be correct). By the looks of things, you don't get access to the actual item playing, rather only it's videoinfotag which does not hold the information you want.

It makes no sense as a general infolabel, as the skin won't use it and you don't want to display the info. Thus, the correct place to put it is in some general "Player.GetMeAllTheInfoDamnit" or via JSON-RPC. I'm sure that fanart would be useful for the latter either way, and should already be possible I would have thought (you get an item, so should be able to get the metadata information for that item).
"Player.GetMeAllTheInfoDamnit" - Yeah, that would be a nice InfoLabel Wink

My way for getting the fanart via json was not very smart. I couldnt get the id of the playing item, so i had to receive all videos via VideoLibrary.GetMovies/GetEpisodes and the search for the fanart - Slow with large DBs. But you pointed me to the right direction via the JSON-RPC: Player.GetItem - I missed this before.
Thanks for your help!
Reply

Logout Mark Read Team Forum Stats Members Help
Get fanart of playing media0