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)



- reblutus - 2011-07-17

I've got another issue though.

With this skin (PM3) I found a way to show the subtitle button but when I click on it nothing happens

xbmc log shows:
09:51:43 T:98598912 M:116645888 DEBUG: ExecuteXBMCAction : Translating RunScript($INFO[Skin.String(SubtitleScript_Path)])
09:51:43 T:98598912 M:116645888 DEBUG: ExecuteXBMCAction : To RunScript()
09:51:43 T:98598912 M:116645888 ERROR: Keymapping error: no such action 'runscript()' defined

any idea why?


- amet - 2011-07-17

reblutus Wrote:I've got another issue though.

With this skin (PM3) I found a way to show the subtitle button but when I click on it nothing happens

xbmc log shows:
09:51:43 T:98598912 M:116645888 DEBUG: ExecuteXBMCAction : Translating RunScript($INFO[Skin.String(SubtitleScript_Path)])
09:51:43 T:98598912 M:116645888 DEBUG: ExecuteXBMCAction : To RunScript()
09:51:43 T:98598912 M:116645888 ERROR: Keymapping error: no such action 'runscript()' defined

any idea why?

set the path to it under the enable option(where you found it)


- nirran - 2011-07-18

Possible to add first sync to get it to work great with movies/series in .rar folders?
I just get the first sync to work with some series with full names in their title Smile

Should not be to hard i think? Since the release name is in the folder name of the movie..? or am I dead wrong here? :<


- amet - 2011-07-18

nirran Wrote:Possible to add first sync to get it to work great with movies/series in .rar folders?
I just get the first sync to work with some series with full names in their title Smile

Should not be to hard i think? Since the release name is in the folder name of the movie..? or am I dead wrong here? :<

Sync is calculated by the file, not the file name. We currently ignore rar files and only search by name for them. Might change in the future


- nirran - 2011-07-18

amet Wrote:Sync is calculated by the file, not the file name. We currently ignore rar files and only search by name for them. Might change in the future

oh, okey! seems strange that i found exact release names with accurate sync that didn't load with first sync.. But ye, maybe in the future! Smile


- flaviosa - 2011-07-20

Hi guys,

I have a problem that I can download the first subtitle perfectly fine and then when I try to download the second one(in following) it get hangs on the "Downloading" part.

It this a well known issue?

Thanks


- amet - 2011-07-20

flaviosa Wrote:It this a well known issue?

no,not at all.... but debug log might have some clues why you have the issues


- flaviosa - 2011-07-23

amet Wrote:no,not at all.... but debug log might have some clues why you have the issues


I saw that in the past there was a problem with rar extraction.

I don't if this is the case:

14:31:49 T:1980 M:1736425472 DEBUG: CApplication::OnKey: return (f00d) pressed, action is Select
14:31:49 T:3812 M:1736425472 DEBUG: ### [XBMC Subtitles-gui] - Selected : [0]
14:31:53 T:1980 M:1735892992 ERROR: rarmanager::extractarchive error while extracting C:\Users\Administrator\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.subtitles\sub_tmp\059ef538597421b9620ce186008e2757.rar
14:31:55 T:3812 M:1735868416 ERROR: Exception in python script callback execution
14:31:55 T:3812 M:1735868416 ERROR: Traceback (most recent call last):
14:31:55 T:3812 M:1735868416 ERROR: File "C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\resources\lib\gui.py", line 465, in onClick
14:31:55 T:3812 M:1735847936 ERROR: self.Download_Subtitles( int(selection) )
14:31:55 T:3812 M:1735847936 ERROR: File "C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\resources\lib\gui.py", line 290, in Download_Subtitles
14:31:55 T:3812 M:1735847936 ERROR: zipped, language, file = self.Service.download_subtitles(self.subtitles_list, pos, zip_subs, self.tmp_sub_dir, self.sub_folder,self.session_id)
14:31:55 T:3812 M:1735847936 ERROR: File "C:\Users\Administrator\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\resources\lib\services\LegendasTV\service.py", line 78, in download_subtitles
14:31:55 T:3812 M:1735843840 ERROR: return False, language, subtitle #standard output
14:31:55 T:3812 M:1735843840 ERROR: UnboundLocalError
14:31:55 T:3812 M:1735843840 ERROR: :
14:31:55 T:3812 M:1735843840 ERROR: local variable 'subtitle' referenced before assignment


- Ferra82 - 2011-07-23

Dear Amet,

I have a major issue with the XBMC subtitles add-on.
I choose only ondertitel.com as source to search for subtitles. Then I go to the movies section and play a movie. When I choose subtitles from the top-menu while playing the movie, the add-on is searching for subtitles. But he doesn't find anything. But when I look at the ondertitel.com website, the subtitles are available! What goes wrong here?

Ps. I rename my movie to only the movie-name, leaving the release group out of it. I tried it with both the original download name as the renamed version, but in both situations I don't get any subtitles.

And my second question, is the only option to download a subtitle to do this from the menu while the movie is already playing? Is it not possible, like the movie information does, that when XMBC is updating your library, that it already goes looking for subtitles?


- amet - 2011-07-23

flaviosa Wrote:I saw that in the past there was a problem with rar extraction.

I don't if this is the case:

Full debug log to pastebin.com please


- amet - 2011-07-23

Ferra82 Wrote:Dear Amet,

I have a major issue with the XBMC subtitles add-on.
I choose only ondertitel.com as source to search for subtitles. Then I go to the movies section and play a movie. When I choose subtitles from the top-menu while playing the movie, the add-on is searching for subtitles. But he doesn't find anything. But when I look at the ondertitel.com website, the subtitles are available! What goes wrong here?

Ps. I rename my movie to only the movie-name, leaving the release group out of it. I tried it with both the original download name as the renamed version, but in both situations I don't get any subtitles.

And my second question, is the only option to download a subtitle to do this from the menu while the movie is already playing? Is it not possible, like the movie information does, that when XBMC is updating your library, that it already goes looking for subtitles?

1. Debug log please so that we can see what the issue is

2. No, it's only possible to download subs for the playing movie


- danyboi - 2011-07-23

First of all great plugin.
Is there any way of letting the plugin download all the subs to a specific folder like "c:\subs" and let all the movies look for subs there instead of the movie dir?

Eles I like to autodelete the subs when I close the movie or xbmc, don't want all the subs just laying around in the moviedirs.

Any way to edit the script to work this way or add an option in the next version or so.


- amet - 2011-07-23

danyboi Wrote:First of all great plugin.
Is there any way of letting the plugin download all the subs to a specific folder like "c:\subs" and let all the movies look for subs there instead of the movie dir?

Eles I like to autodelete the subs when I close the movie or xbmc, don't want all the subs just laying around in the moviedirs.

Any way to edit the script to work this way or add an option in the next version or so.

You can deselect "use movie folder to download" in addon settings and set xbmc to look in that folder for subs

no, there is no way to delete sub from a movie folder


- danyboi - 2011-07-23

amet Wrote:You can deselect "use movie folder to download" in addon settings and set xbmc to look in that folder for subs

no, there is no way to delete sub from a movie folder

Thanks!
How did i miss that option.


- mr_blobby - 2011-07-23

Ferra82 Wrote:Dear Amet,

I have a major issue with the XBMC subtitles add-on.
I choose only ondertitel.com as source to search for subtitles. Then I go to the movies section and play a movie. When I choose subtitles from the top-menu while playing the movie, the add-on is searching for subtitles. But he doesn't find anything. But when I look at the ondertitel.com website, the subtitles are available! What goes wrong here?

Ps. I rename my movie to only the movie-name, leaving the release group out of it. I tried it with both the original download name as the renamed version, but in both situations I don't get any subtitles.

And my second question, is the only option to download a subtitle to do this from the menu while the movie is already playing? Is it not possible, like the movie information does, that when XBMC is updating your library, that it already goes looking for subtitles?
I asked you on GoT: try to increase the time-out and are you able to find subtitles with any other service like "opensubtitles"?
I also asked you (just like Amet did just now): enable debug logging and place the xbmc log on pastebin.