Show movie langauge "flag"

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Mudislander Offline
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #11
Shaolin Wrote:I would also like to see this implemented in confluence; specifically to show the language of the different subtitles stored locally. Thought I'd share some flags in case anyone decides to take this up.

I'm interested in the idea but see a couple of problems. One being I'm lazy Wink and the flags would need to be named with the three character code (e.g. eng, epo, deu) I'd hate to get a counties flag wrong! Another problem would be which flag do you show for what language, English for example. Naming as suggested by herzogt would overcome that but I use MovieName.DVDRip.mkv and Convergence is already checking the file extension and keywords DVD, BluRay etc.

If you guys could bash this idea about a bit, the options as I see them are
1. Manual naming your movie would show whatever flag you want, could be used for country of origin etc.
2. Use XBMC's infolabel "ListItem.SubtitleLanguage" which would be more automatic but probably not as accurate.

Noli illegitimi carborundum
find quote
mad-max Online
Posting Freak
Posts: 1,476
Joined: Jul 2010
Reputation: 52
Location: Germany
Post: #12
Done! Shocked

[Image: photo-312-511fe126.jpg]

Right now, it supports 11 languages...if something is missing, you might add it...
The code is quite simple.
To show the flag you need to have the two character code based on XBMC's langinfo.xml surrounded by two dots in the filename...
e.g. int the picture above it is "Avatar.-.Aufbruch.nach.Pandora.de.mkv

You have to place the dots, otherwise you will see some strange behaviour...
I saw also the Russian flag because of Aufb"ru"ch...

Code can be found here:
https://github.com/mad-max/skin.moddedco...64b290348d

@mudislander:
You might take my code for Convergence...

cheers,
mad-max

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #13
Quote:Code can be found here:
https://github.com/mad-max/skin.modd...cccf64b290348d

@mudislander:
You might take my code for Convergence...

cheers,
mad-max

Thanks mate. Will do Smile

Noli illegitimi carborundum
find quote
Shaolin Offline
Senior Member
Posts: 121
Joined: Sep 2011
Reputation: 0
Location: UK
Post: #14
Mudislander Wrote:I'm interested in the idea but see a couple of problems. One being I'm lazy Wink and the flags would need to be named with the three character code (e.g. eng, epo, deu) I'd hate to get a counties flag wrong! Another problem would be which flag do you show for what language, English for example. Naming as suggested by herzogt would overcome that but I use MovieName.DVDRip.mkv and Convergence is already checking the file extension and keywords DVD, BluRay etc.

If you guys could bash this idea about a bit, the options as I see them are
1. Manual naming your movie would show whatever flag you want, could be used for country of origin etc.
2. Use XBMC's infolabel "ListItem.SubtitleLanguage" which would be more automatic but probably not as accurate.
I see 2 scenarios:
    Listing the language of the audio in the movie itself as you described by putting a 3 letter code into the media filename (not my preferred option) i.e.

    The Godfather (1972).eng.mkv
    List the languages of the local subtitles either by reading the 3 letter code from the local .sub file(s) or by reading a subtitle tag in .nfo i.e.

    The Godfather (1972).eng.sub

    and/or

    Code:
    <subtitles>
    <language>eng</language>
    <language>spa</language>
    </subtitles>

I'd prefer option 2 since all my file names are similar to yours i.e. MovieName (Year).mkv and i'd prefer not to change them all Eek

Here is a page for 3 letter language codes

[Image: 1654614846.png]
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #15
Been playing around with this a little and think I'll take the easy option which is just to show the subtitle listed by the XBMC library. It will only show one flag, but we do not want too many anyway. Should be in the next update of Convergence which would be v3.1.6 probably out in a week or two.
Just a Test View

[Image: SubtitleFlag.png]

Noli illegitimi carborundum
find quote
Mudislander Offline
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #16
Shaolin Wrote:I would also like to see this implemented in confluence; specifically to show the language of the different subtitles stored locally. Thought I'd share some flags in case anyone decides to take this up.

Link to the flags individually: http://s1041.photobucket.com/albums/b413...BMC/Flags/

@Shaolin, I've taken this a bit further than I was going to, now Convergence will first check the file name for a 3 digit code eg .Eng. including the fullstops, on not finding the code will then check the XBMC library for a subtitle listing to display. There was a couple of reasons I did this, firstly my subtitles are contained inside the mkv container and secondly I'm born South African but living in the UK and wanted to flag my collection of South African movies. Also others who do not agree with the flag of choice eg Union Jack for english can edit the movie title with USA , AUS or whatever.

What I do need is a fallback for Unknown and I am no artist if someone could do something along the lines of these flags i'd be grateful. I quite like the question mark in this unknown genre icon.
[Image: MovieUnknown.png]

Noli illegitimi carborundum
find quote
knochentrocken Offline
Junior Member
Posts: 12
Joined: Aug 2011
Reputation: 0
Post: #17
Hi,
This already looks great but I am looking for more:
I would like to get an information if the video contains more then one language in audio or subtitle, which one is default and such.
I was looking for something like this.
Can that pe implemented somehow? This would save me to first start the movie and then check for alternative audio...
Thank you,
knochentrocken.
find quote
mad-max Online
Posting Freak
Posts: 1,476
Joined: Jul 2010
Reputation: 52
Location: Germany
Post: #18
Assuming from your nick, I think you can speak German...
You might take a look here:
http://www.xbmcnerds.com/index.php?page=...threadID=4

cheers,
mad-max

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
find quote
stardust Offline
Junior Member
Posts: 22
Joined: Mar 2011
Reputation: 0
Post: #19
Thank you for greate news!

Is there any skin with filtering language capabilities. For example, to select only movies with English audio track and Russian subtitles.

.nfo file contains language data so the best way would be to take this info from metadata.

<audio>
<codec>dca</codec>
<language>eng</language>
<channels>6</channels>
</audio>
find quote
<M1rk0> Offline
Junior Member
Posts: 2
Joined: Feb 2012
Reputation: 0
Post: #20
stardust Wrote:Thank you for greate news!

Is there any skin with filtering language capabilities. For example, to select only movies with English audio track and Russian subtitles.

.nfo file contains language data so the best way would be to take this info from metadata.

<audio>
<codec>dca</codec>
<language>eng</language>
<channels>6</channels>
</audio>

i suggest you create a smart-playlist, something like that:

Quote:<smartplaylist type="movies">
<name>movies-eng-rus</name>
<match>all</match>
<rule field="subtitlelanguage" operator="is">rus</rule>
<rule field="audiolanguage" operator="is">eng</rule>
</smartplaylist>

i can not test it here but should work
find quote