ListItem.SubtitleLanguage - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- Thread: ListItem.SubtitleLanguage (/showthread.php?tid=102891)
ListItem.SubtitleLanguage - cruzannavy - 2011-06-04 20:00
does ListItem.SubtitleLanguage actually work ? i cant seem to get this to work no matter how many way i try it. Isnt it suppossed to return a 3 digit character set . ie eng ?
How would one go about implementing this ie , in dialogvideoinfo or in any view? thank you in advance.
- Hitcher - 2011-06-04 20:50
From the other post -
- cruzannavy - 2011-06-04 20:53
Hitcher Wrote:From the other post -
can you send me the xml or tell me which skin and xml this is so i can see how it is used to see why mine isnt working... thank you
or just post a snip of the code where you have it implemented. thanks
Im trying to add this to my confluence but doesn't return anything , it always stays blank no matter what language or type of sub i use. thanks
- Hitcher - 2011-06-04 20:58
I simply replaced ListItem.Label2 with ListItem.SubtitleLanguage for that test.
Have you enabled extraction of the meta data?
- cruzannavy - 2011-06-04 21:09
Just to be sure where would i verfiy this? or how would i enable / disable that?
- cruzannavy - 2011-06-04 21:21
ah i think i know what the problem is , i replaced my label 2 like yours and some populated, so i wne ta nd cheked those files and in those folders there was a movie.nfo, and in the nfo it told it what language to tell xbmc the subtitle was in. but what i was hoping for , is that xbmc would pick up ie Fight Club.srt or somethign to that matter and tell me it found that. not jsut look in the nfo, because most of my subtitles are downloaded via , xbmc subtitles, after teh fact and that info does not get pushed to the nfo. is there a way to force xbmc to knwo that you have the subtitle and to populate the nfo saying as that you downloaded one with the same naming convention??
- cruzannavy - 2011-06-04 21:24
or is there a way to tell xbmc. to look in that directory and if there is a xxxxx.srt return a yes or eng?
I looked at the python for xbmc subtitles and it has a code in there to do jsut that but how or could i extract that data to simply tell xmbc to post an image or a label saying yes it found the subtitle just like xbmc subtitle does ( it post a label saying u already have a subtitle downloaded?) thanks for any guidance
- cruzannavy - 2011-06-05 17:45
anyone? what i would like to do, is use maybe use Listitem.path ( or filename or filenameandpath) and then see if there is a xxxx.srt or any of the other supported subtitle extensions in that folder and if there is , return an image or a true ( then i can set the true to an image) basically i want add a subtitle flag along with the video aspect audio flags for my library and dialog views. so when i am scrolling through my library i an have a CC ( closed caption image ) displayed next to my other flags. any help would be great. i am familiar with modding skins. thank you
- ronie - 2011-06-05 18:01
i doubt there's a 'hacky' way to get around the issue.
checking for file existence from within the skin is not supported afaik.
there's a feature request on trac for external sub detection:
- cruzannavy - 2011-06-05 18:32
yeah i know it would have to be ahacky way around it. but if yuo read my other post. the xbmc subtitle script has a python to do jsut that. it returns a true if it detects .srt etc... and then display an image int he xbmc subtitle window. i was wondering if there was a way to jsut create that small line of code in a sperate python and have it run with when the dialog window opens ? thoughts?