[RELEASE] Video language script for audio & subtitle streams - 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) +---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300) +---- Thread: [RELEASE] Video language script for audio & subtitle streams (/showthread.php?tid=155693) |
[RELEASE] Video language script for audio & subtitle streams - `Black - 2013-02-10 Hi, there is currently no other way to show the language of all audio & subtitle streams of a video file than adding the language(s) to the filename and display images with substring conditions. Since XBMC already extracts all those infos (we just don't have the necessary info labels), I decided to make a small script which sets properties for the languages in the video info dialog. You have to add this to DialogVideoInfo.xml <onload condition="System.HasAddon(script.videolanguage) + [Container.Content(movies) | Container.Content(episodes)]">RunScript(script.videolanguage,movieid=$INFO[ListItem.DBID])</onload> Then you can access the following properties in the video info dialog PHP Code: Window.Property(AudioLanguage.%d) Quick example PHP Code: <control type="grouplist"> I did some quick testing and it seems to work fine but you never know. Suggestions are welcome. GitHub RE: [RELEASE] Video language script for audio & subtitle streams - butchabay - 2013-02-10 Nice one ! Going to test it the next days... Thanx mate RE: [RELEASE] Video language script for audio & subtitle streams - phil65 - 2013-02-11 nice work. thx. RE: [RELEASE] Video language script for audio & subtitle streams - Hitcher - 2013-02-11 Nice work black. Whatever happened to the request anyway? RE: [RELEASE] Video language script for audio & subtitle streams - pieh - 2013-02-11 Hi, I wasn't around much last month so I guess I missed request for this. I'd say that now there is no good way to pass data containing multiple entries/items (i.e. cast list, album's track list, subtitles/audio streams list) to skin. We usually hardcode some list id to fill it with items (cast / track list). We need to add some mechanism to automate control/items creation, for example: 1. Code: <control type="grouplist"> 2. Code: <control type="grouplist"> After having such mechanism in place it would be really easy to add access to audio/subtitles streams (plus it would allow some nice stuff to be done with VideoPlayer.Cast) RE: [RELEASE] Video language script for audio & subtitle streams - `Black - 2013-02-11 @pieh That would be nice. 2. example looks ok to me, maybe with begin, step and most importantly number of max items. The source could maybe better ListItem.AudioLanguages instead of just AudioLanguages. RE: [RELEASE] Video language script for audio & subtitle streams - ferent - 2013-02-25 I use the skin Aeon Nox that recently has included this script in the latest git, but the Languages don't show for me. Here you have the log. Is there any error? http://www.xbmclogs.com/show.php?id=1177 Thanks!! I use XBMC (12.0), Platform: Linux (Ubuntu 12.04 LTS - XBMCbuntu, 3.2.0-37-generic-pae i686). Built on Feb 7 2013 RE: [RELEASE] Video language script for audio & subtitle streams - `Black - 2013-02-25 Your video file has no language in the audio stream. RE: [RELEASE] Video language script for audio & subtitle streams - phil65 - 2013-02-25 would be nice if you could also add self.window.setProperty('AudioCodec.%d' % count, item['codec']) and self.window.setProperty('AudioChannels.%d' % count, item['channels']) to the script. ( + putting the script on GitHub ) cheers. RE: [RELEASE] Video language script for audio & subtitle streams - `Black - 2013-02-25 Will do. Should also be no problem to submit it to the official repo. Edit: https://github.com/Black09/script.videolanguage RE: [RELEASE] Video language script for audio & subtitle streams - ferent - 2013-02-26 (2013-02-25, 14:04)`Black Wrote: Your video file has no language in the audio stream. How can I add this language in the audio stream to my films? Thanks RE: [RELEASE] Video language script for audio & subtitle streams - hunkyn - 2013-02-26 I have a video that has a language set to "hin" but i only see english in the video info dialog. Using Aeon Nox latest git. http://www.xbmclogs.com/show.php?id=1204 Is it supposed to change the language of the plot automatically to hindi in this case? or am i missing something RE: [RELEASE] Video language script for audio & subtitle streams - `Black - 2013-02-26 It won't change the plot language, you have to configure that in the scraper. If you don't see a flag image for hindi, I guess there simply is no hin.png available. @ferent Google it. RE: [RELEASE] Video language script for audio & subtitle streams - hunkyn - 2013-02-27 (2013-02-26, 13:35)`Black Wrote: It won't change the plot language, you have to configure that in the scraper. If you don't see a flag image for hindi, I guess there simply is no hin.png available. Ah ok that explains. I do see the flag image but was not sure how the plot comes in a different language. Thanks for this amazing feature. RE: [RELEASE] Video language script for audio & subtitle streams - voidy - 2013-02-28 awesome work first off all 1 question i have and i should mention i have ony a general idea how this works so no flaming me please . pretty much all my movies and tvshow episodes have a seperate subtitle file wich is names exactly as the movie or show small example Pulp Fiction.mkv Pulp Fiction-EN.srt is it possible that it sees the .srt file and add the flag ? |