(2014-05-22, 03:37)LEDFan Wrote: (2014-05-16, 18:24)LEDFan Wrote: With latest additions for TV Show cases, etc. (I hope warlion will include them) this skin is now perfect.
I have a last small request. I don't know if this could be make by warlion or somebody else but I think it's very relevant to have this.
When you navigate in the TV-Show episodes, it would be nice to have the audio flags available as well as subtitiles flags for all views. For now, we only get this information if we press "i" to get the info.
Here is an example of what I'm saying (you need the videolanguage script in order to display these flags):
When pressing info we get this:
It would be nice to have it here too and for all views):
Would somebody have any clue for me on how to achieve this?
Something like that :
In fact, there is 2 little things to do in XML files :
- edit MyVideoNav.xml and add condition line 4 :
Code:
Container.Content(tvshows) |
line 4 after editing :
Code:
<onload condition="System.HasAddon(script.videolanguage) + [Container.Content(movies) | Container.Content(tvshows) | Container.Content(episodes)]">RunScript(script.videolanguage,backend=true)</onload>
- edit Includes_MediaFlags.xml and add this block of code :
Code:
<!-- Language flags -->
<control type="grouplist">
<left>1930</left>
<orientation>vertical</orientation>
<usecontrolcoords>true</usecontrolcoords>
<control type="grouplist" id="11000">
<top>12</top>
<width>600</width>
<height>25</height>
<align>left</align>
<animation effect="fade" start="100" end="80" time="40" condition="true">Conditional</animation>
<itemgap>2</itemgap>
<orientation>horizontal</orientation>
<visible>!IsEmpty(Window(movieinformation).Property(AudioLanguage.1)) + !Stringcompare(Window(movieinformation).Property(AudioLanguage.1),und)</visible>
<control type="label">
<width>110</width>
<height>24</height>
<align>right</align>
<top>3</top>
<label>$LOCALIZE[445]: </label>
<font>Font_Reg19_Caps</font>
</control>
<include>LanguageFlags</include>
</control>
<!-- Subtitle flags -->
<control type="grouplist" id="12000">
<animation effect="fade" start="100" end="80" time="40" condition="true">Conditional</animation>
<width>600</width>
<height>25</height>
<align>left</align>
<itemgap>2</itemgap>
<visible>Control.IsVisible(11000)</visible>
<orientation>horizontal</orientation>
<control type="label">
<width>110</width>
<top>3</top>
<height>24</height>
<align>right</align>
<aligny>bottom</aligny>
<label>$LOCALIZE[287]: </label>
<font>Font_Reg19_Caps</font>
</control>
<control type="label">
<width min="20" max="150">auto</width>
<height>24</height>
<align>left</align>
<aligny>bottom</aligny>
<label>31003</label>
<textcolor>grey</textcolor>
<font>Font_Reg19_Caps</font>
<visible>IsEmpty(Window(movieinformation).Property(SubtitleLanguage.1)) + IsEmpty(Window(movieinformation).Property(SubtitleLanguage.2))</visible>
</control>
<include>SubtitleFlags</include>
</control>
</control>
After MPAA icon (modded XML file can be downloaded
here).
But this mod only work if each episode get language flag.
To display French flag for this episode, I had to edit XBMC database and add 'fr' value to strAudioLanguage field in streamdetails table.
When you enable debug log, for each episode, script.videolanguage (which provide audio and subtitle information) will put some information in debug file :
Code:
DEBUG: script.videolanguage: {"id":1,"jsonrpc":"2.0","result":{"episodedetails":{"episodeid":358,"label":"Chute libre","streamdetails":{"audio":[{"channels":2,"codec":"mp3","language":"fr"}],"subtitle":[],"video":[{"aspect":1.7727270126342773,"codec":"xvid","duration":3344,"height":352,"stereomode":"","width":624}]}}}}
DEBUG: script.videolanguage: {"id":1,"jsonrpc":"2.0","result":{"episodedetails":{"episodeid":359,"label":"Dérapage","streamdetails":{"audio":[{"channels":2,"codec":"mp3","language":""}],"subtitle":[],"video":[{"aspect":1.7727270126342773,"codec":"xvid","duration":2775,"height":352,"stereomode":"","width":624}]}}}}
As you can see, flags won't be display for episode 2, named "Dérapage", because language is undefined :
So you have to find how to specifie language in AVI or WMV or other container file and rescan your library