Clickable "Director" field in DialogVideoInfo - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Clickable "Director" field in DialogVideoInfo (/showthread.php?tid=92351) |
Clickable "Director" field in DialogVideoInfo - hjbotha - 2011-01-27 Hi guys, I'm trying to make the Director field clickable in DialogVideoInfo (currently on Confluence but should translate easily to other skins). I have the following at the moment: Code: onclick>Dialog.Close(movieinformation)</onclick> The Director ID there is hardcoded because I haven't yet figured out how to resolve "$INFO[ListItem.Director]" into the ID of that director. So two questions: 1. How do I get the ID of the director? 2. Is there a cleaner way to do this? Cheers - jmarshall - 2011-01-27 1. You can't. 2. Nope. - hjbotha - 2011-01-28 Thanks jmarshall. Would a patch be accepted? What would be the consistent way to go about it? Add a director.id property? Or make the director field call a function like the cast list does? (I haven't actually had a chance to look at the source yet so "function" may not accurately describe how it works) Thanks - spiff - 2011-01-28 yes, set an additional prop. cleanest imo - pecinko - 2011-01-28 Is someone willing to check Fanart not being available in DialogAlbumInfo? All is fine in DialogSongInfo. - hjbotha - 2011-01-28 I've tried searching for "Writer" (because "Director" keeps finding "Directory" as well) to find where these properties are defined but have so far come up empty. Can I have some guidance? Thanks - jmarshall - 2011-01-28 It's possibly non-trivial. Basically you'd need to do a call to the videodatabase to grab the director ID given the name, as I believe by default you don't get that. There may be a general routine to grab that - not sure. Once done, you stuff that in an item property. GUIWindowVideoInfo.cpp is where the code is to do the display of that window. Cheers, Jonathan - itombs - 2011-01-29 I hope you can do it. Ill be very happy if someone makes the Director field clickable. |