2021-01-16, 16:01
Calling out to all the skinning guru's...
So, I ran a small test yesterday to see if I could get local landscape artwork to display on my PVR Recording screen by placing half a dozen landscape images into a local folder and naming each file exactly the same as the original epg title, then using the following code:-
Since this worked so well, it got me thinking if I might be able to do a similar thing for all my PVR screens using the local PVR artwork I've downloaded with the Skin Helper Script over the past 4/5 years. I have about 18GB of all the main artwork types that have been neatly placed into individual folders which are named exactly the same as the EPG programme title. Yes, I could use the above method, but renaming and copying every single file to match the exact epg title would be a very long tedious task and not easily transferrable to other users who might wish to use the same local approach and artwork.
What I would really like to achieve is for Kodi to match the EPG programme title against the folder name in my local directory of artwork and once found, then be able to specify what artwork type I want to display, ie poster, banner, landscape, etc....And this is where I have drawn a complete blank trying to figure out in my own head how I might achieve such a goal.
I'm not even sure if such a thing would even be possible to code using Kodi's skinning language? I was hoping one our experienced skinners/developers might have some clue or bright idea on how I might achieve this?
Cheers
So, I ran a small test yesterday to see if I could get local landscape artwork to display on my PVR Recording screen by placing half a dozen landscape images into a local folder and naming each file exactly the same as the original epg title, then using the following code:-
I wasn't sure using this approach would actually work on the PVR screens, so was pleasantly surprised when it did. I then tried doing the same using poster, fanart, banner and clearlogo artwork types which all worked as well. I was also able to get artwork for next PVR item to display using this approach, just by changing the ListItem.Title label to ListItem.NextTitle. This isn't currently possible using the regular EPGEventIcon label which will only show artwork for the current EPG item.xml:$INFO[ListItem.Title,E:\PVR Art\landscape\,.jpg]
Since this worked so well, it got me thinking if I might be able to do a similar thing for all my PVR screens using the local PVR artwork I've downloaded with the Skin Helper Script over the past 4/5 years. I have about 18GB of all the main artwork types that have been neatly placed into individual folders which are named exactly the same as the EPG programme title. Yes, I could use the above method, but renaming and copying every single file to match the exact epg title would be a very long tedious task and not easily transferrable to other users who might wish to use the same local approach and artwork.
What I would really like to achieve is for Kodi to match the EPG programme title against the folder name in my local directory of artwork and once found, then be able to specify what artwork type I want to display, ie poster, banner, landscape, etc....And this is where I have drawn a complete blank trying to figure out in my own head how I might achieve such a goal.
I'm not even sure if such a thing would even be possible to code using Kodi's skinning language? I was hoping one our experienced skinners/developers might have some clue or bright idea on how I might achieve this?
Cheers