Order Search by prefered language

When are activated more languages, it can first list prefered language.
This way it can control better to download first languages.

Example:
Having English, Portuguese and Portuguese (Brazilian). On Opensubtitles always shows subtitles by this order:
1. Portuguese (Brazilian)
2. English
3. Portuguese

This way is possible to set Portuguese, English or Portuguese (Brasilian) as first language to apper on XMBC subtitles display.
done.


2014-06-23 13:08 GMT+01:00 Zeljko Ametovic <notifications@github.com>:

> In service.subtitles.opensubtitles/service.py:
>
> > @@ -139,9 +143,11 @@ def get_params(string=""):
> >      else:
> >        lan = xbmc.convertLanguage(lang,xbmc.ISO_639_2)
> >        if lan == "gre":
> > -        lan = "ell"
> > -
> > -    item['3let_language'].append(lan)
> > +        lan = "ell"		
> > +    if __subtitles__ == 'true':
> > +      if __firstlanguage__ == lang: item['1let_language'].append(lan)
> > +      else: item['3let_language'].append(lan)
> > +    else: item['3let_language'].append(lan)
>
> if/else ^^
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amet/service.subtitles.opensubtitles/pull/5/files#r14071746>
> .
>



-- 
Carlos Correia