Kodi Community Forum
[Opensubtitles] Creating files ending "..srt" - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Subtitle Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=143)
+---- Thread: [Opensubtitles] Creating files ending "..srt" (/showthread.php?tid=181177)

Pages: 1 2 3


[Opensubtitles] Creating files ending "..srt" - fernandovg - 2013-12-24

I set my XBMC to download Portuguese Brazilian subtitles
Using this settings:
Settings - Videos - Subtitles - Languages to download subtitles for = Portuguese (Brazil)
https://www.dropbox.com/s/klz8r68si9raexg/screenshot004.png
and in
Settings - Appearance - International - Prefered subtitle language = User Interface Language
https://www.dropbox.com/s/2bjaea4ygcujqlo/screenshot003.png

Opensubtitles downloads ok but it creates SRT file two dots in the end: "Movie.1080p.WEB-DL.DD5.1.H264-BS..srt" and the OSD don't recognize as a subtitle BUT if I go to "Audio" menu its shows 2 subtitles (1 - English and 2 - Unknown)

In OS the code handles PT-BR but I don't know If the Opensubtitles or XBMC are having trouble adding the language name in the SRT file. Or is something related to the option "User Interface Language" that don't exists in ISO.

Code:
for lang in urllib.unquote(params['languages']).decode('utf-8').split(","):
    if lang == "Portuguese (Brazil)":
      lan = "pob"



RE: [Opensubtitles] Creating files ending "..srt" - fernandovg - 2013-12-24

UPDATE: It think its a XBMC issue. I changed:

Settings - Videos - Subtitles - Languages to download subtitles for = Portuguese

and it created OK a ".pt.srt" file

I reverted to "Portuguese (Brazil)" and it created a "..srt"


RE: [Opensubtitles] Creating files ending "..srt" - francovilar - 2014-06-07

no fix for this yet?


RE: [Opensubtitles] Creating files ending "..srt" - francovilar - 2014-08-02

same erro in kodi, today's build. How can I fix it? it's only with Portuguese Brazilian.


RE: [Opensubtitles] Creating files ending "..srt" - fape88 - 2014-08-05

I think 'Portuguese Brazilian' is missing from this arrays: https://github.com/xbmc/xbmc/blob/master/xbmc/utils/LangCodeExpander.cpp#L503


RE: [Opensubtitles] Creating files ending "..srt" - Solid One - 2014-08-25

It's happening with me too. I have to manually rename them.


RE: [Opensubtitles] Creating files ending "..srt" - amet - 2014-08-27

hm, "Portuguese (Brazil)" is not in official ISO list, http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes , is that right?


RE: [Opensubtitles] Creating files ending "..srt" - francovilar - 2014-08-27

(2014-08-27, 19:56)amet Wrote: hm, "Portuguese (Brazil)" is not in official ISO list, http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes , is that right?
that's right. the solution (maybe) is to use RFC 3066 :
http://www.i18nguy.com/unicode/language-identifiers.html
or
http://en.wikipedia.org/wiki/IETF_language_tag
or maybe use a the ISO 639 with a exception PT-BR for Portuguese (Brazil)?


RE: [Opensubtitles] Creating files ending "..srt" - amet - 2014-08-27

I think (and my apologies to Brazilian people if I am wrong) Portuguese is a language, Brazilian doesn't exist as a language and hence should not be used.

we could treat Portuguese (Brazil) in script as Portuguese?


RE: [Opensubtitles] Creating files ending "..srt" - francovilar - 2014-08-27

(2014-08-27, 20:54)amet Wrote: I think (and my apologies to Brazilian people if I am wrong) Portuguese is a language, Brazilian doesn't exist as a language and hence should not be used.

we could treat Portuguese (Brazil) in script as Portuguese?

I'm Portuguese and I don't like to read Pt-br, only if I don't have alternative. It's a different language. Most of the major subtitles websites use portuguese and Portuguese (Brazil). Please add an exception. thank you, Amet.

Edit: XBMC let's me choose the two languages in preferences.

Edit2: same two issues (first one not with subtitles but both solved):

http://forum.xbmc.org/showthread.php?tid=163023
http://forum.xbmc.org/showthread.php?tid=178957


RE: [Opensubtitles] Creating files ending "..srt" - amet - 2014-08-27

try this -> https://github.com/amet/service.subtitles.opensubtitles/commit/9da5a8ce82e37abe682601ef37160b270d5a831a

EDIT: language flag should give you an indication if its Brazilian or Portuguese


RE: [Opensubtitles] Creating files ending "..srt" - Wanilton - 2014-08-27

Portuguese is only one language, look for understand

http://en.wikipedia.org/wiki/Portuguese_Language_Orthographic_Agreement_of_1990

but the fact, for now we have two orthographies, and solution in Kodi was great for now.

2015 is deadline for only one orthography in Portugal, Brazil and others countries..


[Opensubtitles] Creating files ending "..srt" - francovilar - 2014-08-28

Portuguese was allways one language but we speak and write different. It's not a treaty that will make us write or speak the same...maybe in future generations.
Thank you amet, will try tonight.


RE: [Opensubtitles] Creating files ending "..srt" - Ace - 2014-08-28

I had a look at it too, the problem is that "Brazilian" is returned to kodi, which it can not interpret. But you add custom codes via advancedsettings.xml:
Code:
<advancedsettings>
<languagecodes>
  <code>
    <short>pt</short>
    <long>Brazilian</long>
  </code>
</languagecodes>
</advancedsettings>

(2014-08-27, 20:54)amet Wrote: I think (and my apologies to Brazilian people if I am wrong) Portuguese is a language, Brazilian doesn't exist as a language and hence should not be used.

we could treat Portuguese (Brazil) in script as Portuguese?
If "Portuguese (Brazil)" would be returned, Kodi would translated that to "pt".


RE: [Opensubtitles] Creating files ending "..srt" - amet - 2014-08-28

ok, I'll check that , thx