Posts: 229
Joined: Dec 2010
Reputation:
10
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.
XBMC 10.1
Posts: 17,414
Joined: Aug 2007
Reputation:
590
Hitcher
Team-Kodi Member
Posts: 17,414
I simply replaced ListItem.Label2 with ListItem.SubtitleLanguage for that test.
Have you enabled extraction of the meta data?
Posts: 229
Joined: Dec 2010
Reputation:
10
Just to be sure where would i verfiy this? or how would i enable / disable that?
Posts: 229
Joined: Dec 2010
Reputation:
10
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??
Posts: 229
Joined: Dec 2010
Reputation:
10
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
Posts: 229
Joined: Dec 2010
Reputation:
10
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
Posts: 229
Joined: Dec 2010
Reputation:
10
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?
Posts: 229
Joined: Dec 2010
Reputation:
10
unfortunately im not a python/ script guy.. but theres always a time to start right . and im guessing thats now. im going to hack away at it, so intheory for now, if i exceute xbmc subtitle script in conjunction with dialouge info it probably wont pass recognize the dialouge window, im pretty sure it lookd for whats currently playing not whats in the list. is it possible to get me started in the right direction.
cause what im about to do is guess until i get soemthign to work. if i copy subtitle script and change the name and details and make it launch on focus with dialoge ill see what happens then
but yes like you said. run script on open dialouge or focus ( like in a wallstream or list view) and pass info back to skin to either displa image or not based on if it finds the file in the path .