akiraaisha / legendasbaixator

Automatically exported from code.google.com/p/legendasbaixator
0 stars 1 forks source link

Unable to download Subtiles other than Portuguese - Brasil (getCodeSufix Problem) #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If you try to download a subtitle different than "Portuguese - Brazil" the 
plugin does not respond.

You can replicate this by setting "Spanish" in "Language on Subtitle Name" and 
Spanish in all the other options.

There seems to be a problem with getCodeSufix

The log output is:

14:35:18.512 3 stderr   at 
Model.SubTitleLanguage.getCodeSufix(SubTitleLanguage.java:798)
14:35:18.512 3 stderr   at Utils.FileUtils.hasSubTitleFile(FileUtils.java:51)
14:35:18.513 3 stderr   at 
Manager.DownloadManager.getSubTitleForAllCompletedMovies(DownloadManager.java:17
3)

However if I set "Portuguese - Brasil) in "Language on Subtitle Name" and 
Spanish in all the other options I get this output (I´ve censored the file 
name on purpose):

14:38:20.280 0 plug    [VuzeLegendasBaixator] XXXXXXX.mp4: Getting subtitle 
list from SubDB
14:38:21.176 0 plug    [VuzeLegendasBaixator] XXXXXXX.mp4: SubTitle not found 
on SubDB
14:38:22.334 0 plug    [VuzeLegendasBaixator] XXXXXXX.mp4: Getting subtitle 
list from OpenSubTitles
14:38:22.656 0 plug    [VuzeLegendasBaixator] XXXXXXX.mp4: SubTitle not found 
on OpenSubTitles
14:38:25.763 3 stderr   at 
Manager.SubTitleManager.downloadSubTitles(SubTitleManager.java:90)
14:38:25.763 3 stderr   at 
Manager.DownloadManager.downloadSubTitles(DownloadManager.java:231)
14:38:25.763 3 stderr   at 
Manager.DownloadManager.getSubTitleForAllCompletedMovies(DownloadManager.java:20
5)
14:38:25.797 1 alert   Alert:1:Subtitle not found for XXXXXXX.mp4

There is no mention of getCodeSufix

In SubTitleLanguage.java the onlye reference to getCodeSufix is on "Portuguese 
- Brasil"

    @CodeISO639_2("pob")
    @CodeSufix({"pob", "pb", "ptbr"})
    @Description("Portuguese - Brazil")
    por_BR,

Versus

@CodeISO639_2("spa")
    @CodeISO639_1("es")
    @Description("Spanish")
    spa,

I dont know how to complie Java, Im just a power user. I will try to help you 
debugging this problem.

Juan

Original issue reported on code.google.com by juanigna...@gmail.com on 25 Aug 2012 at 5:45

GoogleCodeExporter commented 8 years ago
System Notes:

Java 1.6.0_33
 Apple Inc.
SWT v4233, cocoa
Mac OS X v10.6.8, x86_64
V4.7.1.3_B07/4 az3

Original comment by juanigna...@gmail.com on 25 Aug 2012 at 5:47