Kodi Community Forum
Release [service.subtitles.opensubtitles] - 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: Release [service.subtitles.opensubtitles] (/showthread.php?tid=183114)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


RE: [service.subtitles.opensubtitles] - brunolaf - 2014-11-08

Only manually search works! Anybody knows how to fix?


RE: [service.subtitles.opensubtitles] - firerm - 2014-11-09

It's not working anymore ... please fix this this is ALL XBMC !


RE: [service.subtitles.opensubtitles] - maikito26 - 2014-11-09

(2014-10-16, 16:53)tnuc Wrote: Remove temp/ folder from service.subtitles.opensubtitles

This only works once, then you have to do it again Sad


RE: [service.subtitles.opensubtitles] - jappoman - 2014-11-09

+1 i've the same problem. opensubtitle can's search and podenapsi can search but not dowload


RE: [service.subtitles.opensubtitles] - ripacid - 2014-11-09

same problem here, kodi beta 1


RE: [service.subtitles.opensubtitles] - bluechris - 2014-11-10

I updated to latest nightly and the problem is gone.


RE: [service.subtitles.opensubtitles] - ripacid - 2014-11-10

(2014-11-10, 00:06)bluechris Wrote: I updated to latest nightly and the problem is gone.

Just did that and the problem isn't fixed Sad


RE: [service.subtitles.opensubtitles] - misa - 2014-11-10

(2014-11-10, 00:06)bluechris Wrote: I updated to latest nightly and the problem is gone.

Where did you the nightly of Opensubtitles?


RE: [service.subtitles.opensubtitles] - bluechris - 2014-11-10

Not open subtitles nightly but kodi nightly.... you think is a coincidence? I will check again when i go home in a few hours guys.


RE: [service.subtitles.opensubtitles] - misa - 2014-11-10

I am a bit surprised that everybody got problems now with this add-on and Amet is not responding......give us some light here please


RE: [service.subtitles.opensubtitles] - bluechris - 2014-11-11

Ok no guys is not working for me either.. i dont get it.. i swear yesterday i watched a movie and worked...


RE: [service.subtitles.opensubtitles] - Lampard - 2014-11-11

Becouse (at least for me) opensubtitles works fine with movies on the hard drive, but there is an error when I try to use it with Genesis addon. Didn't try with different video addons. Can you confirm?

Btw. Hi guys. I'm new here Smile


RE: [service.subtitles.opensubtitles] - pedror - 2014-11-11

Hi, I may have a quick fix for this, totally unofficial and only slightly tested... (backup the original file, please)

Edit the file .xbmc/addons/service.subtitles.opensubtitles/resources/lib/OSUtilities.py
Where you see:
Code:
if item['mansearch']:
          searchlist = [{'sublanguageid':",".join(item['3let_language']),
                       'query'        :OS_search_string
                     }]
          search = self.server.SearchSubtitles( self.osdb_token, searchlist )
          if search["data"]:
          return search["data"]
      else:
          search = self.server.SearchSubtitles( self.osdb_token, searchlist )
          if search["data"]:
          return search["data"]
    else:
      searchlist = [{'sublanguageid':",".join(item['3let_language']),
                     'query'        :OS_search_string
                       }]
            search = self.server.SearchSubtitles( self.osdb_token, searchlist )
            if search["data"]:
            return search["data"]
replace with:
Code:
if item['mansearch']:
          searchlist = [{'sublanguageid':",".join(item['3let_language']),
                       'query'        :OS_search_string
                     }]
          search = self.server.SearchSubtitles( self.osdb_token, searchlist )
          if search["data"]:
          return search["data"]
      else:
        try:
            search = self.server.SearchSubtitles( self.osdb_token, searchlist )
            if search["data"]:
            return search["data"]
        except: pass
          searchlist = [{'sublanguageid':",".join(item['3let_language']),
                       'query'        :OS_search_string
                     }]
          search = self.server.SearchSubtitles( self.osdb_token, searchlist )
          if search["data"]:
          return search["data"]
Be mindful of spaces/tabs, since python is very particular about it (it seems to be mostly 2 spaces indentation, but there are some tabs in the mix).

Basically, it's just wrapping the SearchSubtitles() call in the "else" in a "try: except". I guess the service now throws an exception whereas it did not before?
I honestly haven't looked at anything else, I just wanted the damn subtitles to work!

It seems to be working in plugins (like icefilms) as well as local files.

I apologize in advance if anyone manages to break something trying to follow these directions...


RE: [service.subtitles.opensubtitles] - tnuc - 2014-11-11

(2014-11-10, 22:50)misa Wrote: I am a bit surprised that everybody got problems now with this add-on and Amet is not responding......give us some light here please

http://forum.kodi.tv/showthread.php?tid=183114&pid=1832038#pid1832038

Debug Log maybe? If it can't be reproduced it can't be fixed.

Edit: looks like other addons have same issues http://forum.kodi.tv/showthread.php?tid=193829


RE: [service.subtitles.opensubtitles] - marszalek1 - 2014-11-11

(2014-11-11, 01:43)pedror Wrote: Hi, I may have a quick fix for this, totally unofficial and only slightly tested... (backup the original file, please)

Edit the file .xbmc/addons/service.subtitles.opensubtitles/resources/lib/OSUtilities.py
Where you see:
Code:
if item['mansearch']:
          searchlist = [{'sublanguageid':",".join(item['3let_language']),
                       'query'        :OS_search_string
                     }]
          search = self.server.SearchSubtitles( self.osdb_token, searchlist )
          if search["data"]:
          return search["data"]
      else:
          search = self.server.SearchSubtitles( self.osdb_token, searchlist )
          if search["data"]:
          return search["data"]
    else:
      searchlist = [{'sublanguageid':",".join(item['3let_language']),
                     'query'        :OS_search_string
                       }]
            search = self.server.SearchSubtitles( self.osdb_token, searchlist )
            if search["data"]:
            return search["data"]
replace with:
Code:
if item['mansearch']:
          searchlist = [{'sublanguageid':",".join(item['3let_language']),
                       'query'        :OS_search_string
                     }]
          search = self.server.SearchSubtitles( self.osdb_token, searchlist )
          if search["data"]:
          return search["data"]
      else:
        try:
            search = self.server.SearchSubtitles( self.osdb_token, searchlist )
            if search["data"]:
            return search["data"]
        except: pass
          searchlist = [{'sublanguageid':",".join(item['3let_language']),
                       'query'        :OS_search_string
                     }]
          search = self.server.SearchSubtitles( self.osdb_token, searchlist )
          if search["data"]:
          return search["data"]
Be mindful of spaces/tabs, since python is very particular about it (it seems to be mostly 2 spaces indentation, but there are some tabs in the mix).

Basically, it's just wrapping the SearchSubtitles() call in the "else" in a "try: except". I guess the service now throws an exception whereas it did not before?
I honestly haven't looked at anything else, I just wanted the damn subtitles to work!

It seems to be working in plugins (like icefilms) as well as local files.

I apologize in advance if anyone manages to break something trying to follow these directions...

I couldn't find this line.