Kodi Community Forum
[DEPRECIATED] XBMC Subtitles - Addon Script (previously OpenSubtitles OSD) - 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: [DEPRECIATED] XBMC Subtitles - Addon Script (previously OpenSubtitles OSD) (/showthread.php?tid=75437)



- amet - 2010-08-22

matejdro Wrote:OpenSubtitles seems to work now, except that i need to wait like ten years for it to load.

Here is the debug file:

http://pastebin.com/5hz4XY27

I started playing movie from the library, then activated subtitles. Default option is subscene, so after search ended, i switched to podnapisi.net. No results.

please enable debug logging and reupload the xbmc.log


- matejdro - 2010-08-22

Here you go: http://pastebin.com/csLEttF5


- amet - 2010-08-22

matejdro Wrote:Here you go: http://pastebin.com/csLEttF5

podnapisi finds a lot of subs for Angels & Demons in all 3 langages you were searching



Image


are you finding any subs on podnapisi for other movies?


- matejdro - 2010-08-22

Nope, tried lots of other movies and don't work.

Search results page from log (http://www.podnapisi.net/ppodnapisi/search?tbsl=1&sK=Angels+&+Demons&sJ=1&sY=2009&sTS=&sTE=&sXML=1&lang=0) opens without problems on the browser, so something is wrong inside plugin.


- amet - 2010-08-22

matejdro Wrote:Nope, tried lots of other movies and don't work.

Search results page from log (http://www.podnapisi.net/ppodnapisi/search?tbsl=1&sK=Angels+&+Demons&sJ=1&sY=2009&sTS=&sTE=&sXML=1&lang=0) opens without problems on the browser, so something is wrong inside plugin.

not sure what to tell you Sad

it works on my side on OSX, ATV and XP. above screencap is from OSX.

it could be that there is an issue with win 7(64 bit), anyone else on win 7 64bit having the same issue?


- mr_blobby - 2010-08-22

I've got the same problem and I'm also on Win7 64bit.
Ok, I know what the problem is and it is not platform-related.
Podnapisi has become aware of the location the api-requests are coming from and is using the language of that location.
That means that the language names that are returned are translated and not standard English.
So for example I'm from the Netherlands and that causes the xml returned from Podnapisi to translate 'English' to 'Engels' and 'Slovenian' to 'Sloveens'.
In the script this causes a mistake in the lookup table to find the appropriate flag to be displayed.
Future bugfix is to use the 'languageId' and not the 'languageName' for looking up the flag to be displayed (unfortunately the id's from Podnapisi are not the same as for Opensubtitles.org).


Whole season? - xburchartz - 2010-08-26

I just love this script for finding a single subtitle for an episode. Is it also possible to download subtitles for a whole season?


- amet - 2010-08-26

xburchartz Wrote:I just love this script for finding a single subtitle for an episode. Is it also possible to download subtitles for a whole season?

unfortunately not


- amet - 2010-08-26

mr_blobby Wrote:I've got the same problem and I'm also on Win7 64bit.
Ok, I know what the problem is and it is not platform-related.
Podnapisi has become aware of the location the api-requests are coming from and is using the language of that location.
That means that the language names that are returned are translated and not standard English.
So for example I'm from the Netherlands and that causes the xml returned from Podnapisi to translate 'English' to 'Engels' and 'Slovenian' to 'Sloveens'.
In the script this causes a mistake in the lookup table to find the appropriate flag to be displayed.
Future bugfix is to use the 'languageId' and not the 'languageName' for looking up the flag to be displayed (unfortunately the id's from Podnapisi are not the same as for Opensubtitles.org).

try 1.8.0, it now gets language from "languageId". If that was an issue it should be fixed now

let me know please

Zeljko


- iElectric - 2010-08-27

Crash when using podnapisi.net, debug log:

http://paste.pocoo.org/show/254868/

I'm wondering why don't you wrap whole plugin in try/except and log the exception before crash?


- snyft - 2010-08-27

Crash when downloading from either subscene or undertexter. Opensub dosent even load...


- mr_blobby - 2010-08-27

Amet Wrote:try 1.8.0, it now gets language from "languageId". If that was an issue it should be fixed now

let me know please

Zeljko
Yep, this fixed it for Podnapisi.
Thanks!


- mr_blobby - 2010-08-27

iElectric Wrote:Crash when using podnapisi.net, debug log:

http://paste.pocoo.org/show/254868/

I'm wondering why don't you wrap whole plugin in try/except and log the exception before crash?
kraaa Wrote:Crash when downloading from either subscene or undertexter. Opensub dosent even load...
We don't have magical powers to see what is wrong in your situations, so debug logs please.

1) Enable debugging: in Settings > System > Debugging enable the setting "Enable debug logging".
2) Reproduce the problem
3) Paste the logfile in pastebin.com.
Logfile location:
- OSX/ATV: /Users/<username>/Library/Logs/
- Linux: /home/<username>/.xbmc/temp/
- Windows: %APPDATA%\XBMC\



- iElectric - 2010-08-27

Debug is already on, I'm quite fluent in Python, but debugging this script is pain. Any tips?


- amet - 2010-08-27

iElectric Wrote:Debug is already on, I'm quite fluent in Python, but debugging this script is pain. Any tips?

indeed, the debug is on. The problem you have is that you are using external 2.6 Python.

recompile xbmc using its own internal python and you will not have any problems with the scripts.


EDIT:
iElectric Wrote:I'm quite fluent in Python
sure

iElectric Wrote:but debugging this script is pain

why?

iElectric Wrote:Any tips?

not sure what you are trying to achieve, you haven't had one creative post, just bitching sessions. let us know what you are trying to do and I am sure we have a lot of tips


Cheers,
Zeljko