[SUBSCENE.COM] Addon shows "No subtitles found" (Linux)
#1
Sad 
Hello all,

Subscene addon has been showing "No subtitles found" for quite some time.
More than 6 months... can't really recall exactly when stopped.
Likely after an update.

At the same time bsplayer subtitles addon works fine.

Platform:
Linux kodi-pc 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
KODI-v17.6
Python 2.7.6 (python_2.7.5-5ubuntu3_amd64)

kodi.log

Tried python 2.7.9 and 2.7.14 - bunch of addons showed errors at kodi startup, reverted to original distro python version.

Please help.

Thank you!
Reply
#2
00:28:44.477 T:139684878972928 NOTICE: Disabled debug logging due to GUI setting. Level 0.

Enable debugging for a slightly more detailed log file.
Reply
#3
Sad 
Thank you for your reply Klojum.

Here is another go for the log file.

If this is not the kind of debug log you expected to see, please tell me where what to set.

Thanks!
Reply
#4
... a little more digging...

To my understanding problem occurs somewhere in the first few lines of this (cut from SubsceneUtilities.py):
python:
def geturl(url, cookies=None):
    log(__name__, "Getting url: %s" % url)
    try:
        request = urllib2.Request(url)
        request.add_header('Accept-encoding', 'gzip')
        if cookies:
            request.add_header('Cookie', cookies)
        request.add_header('User-Agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:41.0) Gecko/20100101 Firefox/41.0')
        response = urllib2.urlopen(request)
        log(__name__, "request done")
        if response.info().get('Content-Encoding') == 'gzip':
            buf = StringIO(response.read())
            f = gzip.GzipFile(fileobj=buf)
            content = f.read()
        else:
            content = response.read()
        log(__name__, "read done")
        # Fix non-unicode characters in movie titles
        strip_unicode = re.compile("([^-_a-zA-Z0-9!@#%&=,/'\";:~`\$\^\*\(\)\+\[\]\.\{\}\|\?<>\\]+|[^\s]+)")
        content = strip_unicode.sub('', content)
        return_url = response.geturl()
        log(__name__, "fetching done")
    except:
        log(__name__, "Failed to get url: %s" % url)
        content = None
        return_url = None
    return content, return_url

Probably "https:" related..?
Tried this: 306162 (thread)
Did not help.
Unfortunately this is as far as my abilities can get me.

Any ideas about the root cause?

Actually, could we say that the subscene add-on is obsolete/abandoned/etc and would be wiser to use other more current subtitle addons?

Thank you
Reply
#5
It looks like Python - SSL cock-up.

A little more digging and experimenting brought up this:
python:
from urllib2 import Request, urlopen, URLError
req = Request('https://yahoo.com')
try:
    response = urlopen(req)
except URLError as e:
    if hasattr(e, 'reason'):
        print 'We failed to reach a server.'
        print 'Reason: ', e.reason
    elif hasattr(e, 'code'):
        print 'The server couldn\'t fulfill the request.'
        print 'Error code: ', e.code
else:
    print 'Success'

ends up with 'Success'

python:
from urllib2 import Request, urlopen, URLError
req = Request('https://subscene.com')
try:
    response = urlopen(req)
except URLError as e:
    if hasattr(e, 'reason'):
        print 'We failed to reach a server.'
        print 'Reason: ', e.reason
    elif hasattr(e, 'code'):
        print 'The server couldn\'t fulfill the request.'
        print 'Error code: ', e.code
else:
    print 'Success'

gives this error:
We failed to reach a server.
Reason:  [Errno 1] _ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

Now what?
Reply
#6
I have noticed lately I can't get any results either. I'd say for about 2-3 weeks, but haven't really tracked it as I haven't added much to the library lately needing subs. If I were to guess, it happened after some updates. I'm running Ubuntu 16.04 and I don't seem to have any other issues. I will try to get a log if it will help in the search for a solution.
Reply

Logout Mark Read Team Forum Stats Members Help
[SUBSCENE.COM] Addon shows "No subtitles found" (Linux)0