Language detection
#1
Hi,

my movies have either english, german or both audio streams.
It is very important for me that the language flag shows the correct language and it would be perfect if Alaska didn't show only one flag but both if there were two audio streams - alternatively a flag [DL] for dual language.

As far as I know, the language is detected by using mediainfo, right? Because of this, only audio streams in mkv containers are detected.

What willl I have to change if I want the language to be detected from the file name?

Each of my movies is named in this matter: "title.year.DL/ENG/GER.format".

Any help would be greatly appreciated.
Reply
#2
Got it working by myself:

Includes_MediaFlags.xml

Code:
<control type="image">
                    <width>88</width>
                    <include>PosterMediaFlagsVars</include>
                    <texture>flags/frame_lang.png</texture>
                    <visible>substring(listitem.filename,GER) | substring(listitem.filename,ENG) | substring(listitem.filename,DL)</visible>
                </control>
                <control type="label">
                    <label>GER</label>
                    <posx>30</posx>
                    <posy>-1</posy>
                    <width>56</width>
                    <include>PosterMediaFlagsVars</include>
                    <font>Font_Flags_Large</font>
                    <textcolor>FlagText</textcolor>
                    <visible>substring(listitem.filename,GER)</visible>
                </control>
                <control type="label">
                    <label>ENG</label>
                    <posx>30</posx>
                    <posy>-1</posy>
                    <width>56</width>
                    <include>PosterMediaFlagsVars</include>
                    <font>Font_Flags_Large</font>
                    <textcolor>FlagText</textcolor>
                    <visible>substring(listitem.filename,ENG)/visible>
                </control>
                <control type="label">
                    <label>DL</label>
                    <posx>30</posx>
                    <posy>-1</posy>
                    <width>56</width>
                    <include>PosterMediaFlagsVars</include>
                    <font>Font_Flags_Large</font>
                    <textcolor>FlagText</textcolor>
                    <visible>substring(listitem.filename,DL)</visible>
                </control>
Reply
#3
Can you post a screenshot of what this looks like? I have some dual language MKVs aswell (English and French) and I would like to see how it looks before.

thanks
Hardware: Revo 3610 + SSD - Harmony 700 Remote
Software: XBMCBuntu Gotham - Sickbeard - SabNZBd+

Image
Reply

Logout Mark Read Team Forum Stats Members Help
Language detection0