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 - 2012-02-10

Bogga Wrote:I've had this problem for quite some time now. First of all I can't seem to find subtitles through podnapisi, even though I know there are perfect subtitles at that site. I've put my login name and password for that site, still no success

Then I find subtitles at opensubtitles, I try to download them... but it just stays at "downloading subtitles" and doesn't move past that. Any idea what I have to do to get it to work?

(Click image for bigger version)
Image

Debug log is needed, see my signature


- amet - 2012-02-10

subixonfire Wrote:@amet

Can you please include the https streams change?

Code:
if (movieFullPath.find("http://") > -1 ) or (movieFullPath.find("https://") > -1 ):

That fixes subtitles on all https streams.

I promise not to ask nothing more for a month atleast. Smile

ok? -> https://github.com/amet/script.xbmc.subtitles/commit/a3b23246f743b29e5bbc2952b7090063cd6ef637


- macf1an - 2012-02-10

amet Wrote:yeah, good idea.. will implement it so it remembers the entered search string

edit: try this -> https://github.com/amet/script.xbmc.subtitles/commit/6d997c166a6fec4adda3f3116084c494c25e8301

haha I have repeatedly forgotten to ask you for the same mod for the past 9-10 months Smile (I waited to catch you in a seemingly good mood and eventually gave up / forgot Big Grin ) It's a must have for Navi-X users!
hvala Smile


- amet - 2012-02-10

macf1an Wrote:haha I have repeatedly forgotten to ask you for the same mod for the past 9-10 months Smile (I waited to catch you in a seemingly good mood and eventually gave up / forgot Big Grin ) It's a must have for Navi-X users!
hvala Smile

I am always in a good mood Big Grin

Nema na cemu, vidi jel radi pa javi


- kri kri - 2012-02-10

I am trying to use this:

<substitute>
<from>special://masterprofile/addon_data/</from>
<to>smb://WHS/Software/XBMC/userdata/addon_data</to>
</substitute>

But whenever I try and download subtitles it gives me an error when extracting subtitles. When I delete this information from my advancesettings files it works perfectly fine. Is this known and do you need a debug log?


- amet - 2012-02-10

kri kri Wrote:I am trying to use this:

<substitute>
<from>special://masterprofile/addon_data/</from>
<to>smb://WHS/Software/XBMC/userdata/addon_data</to>
</substitute>

But whenever I try and download subtitles it gives me an error when extracting subtitles. When I delete this information from my advancesettings files it works perfectly fine. Is this known and do you need a debug log?

yes, debug log is needed but I dont see how this is anything to do with subtitle addon


- kri kri - 2012-02-10

Because if I use the code above it does not work, and if I remove that from my advancedsettings file, it works. Here is the part of my debug that I found:

Quote:14:50:07 T:8620 ERROR: self.Download_Subtitles( self.getControl( SUBTITLES_LIST ).getSelectedPosition() )
14:50:07 T:8620 ERROR: File "C:\Users\Evan\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\resources\lib\gui.py", line 286, in Download_Subtitles
14:50:07 T:8620 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:50:07 T:8620 ERROR: File "C:\Users\Evan\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\resources\lib\services\OpenSubtitles\service.py", line 57, in download_subtitles
14:50:07 T:8620 ERROR: local_file = open(zip_subs, "w" + "b")
14:50:07 T:8620 ERROR: IOError
14:50:07 T:8620 ERROR: :
14:50:07 T:8620 ERROR: [Errno 2] No such file or directory: 'C:\\Users\\Evan\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\script.xbmc.subtitles\\sub_tmp\\zipsubs.zip'

If you need a full log just let me know. I followed this wiki entry here:
http://wiki.xbmc.org/index.php?title=HOW-TO:Sync_multiple_libraries/Sync_other_parts_of_XBMC

To sync my addon_data folder. The subtitles download fine and display when I use a local userdata folder.


- amet - 2012-02-10

kri kri Wrote:Because if I use the code above it does not work, and if I remove that from my advancedsettings file, it works. Here is the part of my debug that I found:



If you need a full log just let me know. I followed this wiki entry here:
http://wiki.xbmc.org/index.php?title=HOW-TO:Sync_multiple_libraries/Sync_other_parts_of_XBMC

To sync my addon_data folder. The subtitles download fine and display when I use a local userdata folder.

Addon can't open file over smb/FTP/afp/nfs , it's xbmc limitation


- kri kri - 2012-02-10

But it says I can sync my addon_data folder, is this not true? Every other addon I use works fine. To be clear, the addon is not installed in addon_data, just settings.xml file and the sub_tmp folder.


- amet - 2012-02-10

kri kri Wrote:But it says I can sync my addon_data folder, is this not true? Every other addon I use works fine.

You can sync it, subtitle addon can't use it


- fdonv - 2012-02-11

Hello amet,

Any chance that you add this fix to your addon?
At least for the BetaSeries service, this problem occure all the time with the "grey's anatomy" tvshow (sql error).

Than you,
fdonv

fdonv Wrote:ok, i've tested to fix the bug by changing something in your addon :

line 51 in "script.xbmc.subtitles/resources/lib/services/BetaSeries/service.py" :

changing :
query = "select c12 from tvshow where c00 = '" + unicode(title) + "' limit 1"
by:
query = 'select c12 from tvshow where c00 = "' + unicode(title) + '" limit 1'

with this little modification, all tvshows titles will work!
Nod

regards,



- woompa - 2012-02-11

amet Wrote:yeah, good idea.. will implement it so it remembers the entered search string

edit: try this -> https://github.com/amet/script.xbmc.subtitles/commit/6d997c166a6fec4adda3f3116084c494c25e8301

Can anyone confirm that this works? I get a script error when I click the subtitle button on the OSD. I may have incorrectly edited the file but I will try editing again if someone can confirm it works. Thank you!


- amet - 2012-02-11

fdonv Wrote:Hello amet,

Any chance that you add this fix to your addon?
At least for the BetaSeries service, this problem occure all the time with the "grey's anatomy" tvshow (sql error).

Than you,
fdonv

https://github.com/amet/script.xbmc.subtitles/commit/d3c9a0843371b0b4e62e2a59f5470cfb8ba21e45


- fdonv - 2012-02-11

amet Wrote:https://github.com/amet/script.xbmc.subtitles/commit/d3c9a0843371b0b4e62e2a59f5470cfb8ba21e45

than you!
Nod


- Spider - 2012-02-12

Hi,

I have a question/problem, at the moment i use the newplugin "1 channel" a lot to watch a couple of series.
But the problem i experience is when i want to search the subtitle of the serie from "bierdopje" the sites says "this site is only for series" so it thinks iam watching a movie, but thats not true.
Even if i search manualy it comes with this massage.
So is there a way to make this problem go away?


Kind Regards,