urllib and HTTPS issue
#1
I've some issue with BetaSeries Service for XBMC-Subtitles.
In some configuration, this addon failed to download subtitles, everytime.
Log show this error :
Quote:[XBMC Subtitles-services.BetaSeries.service] - Failed to get url: http://www.betaseries.com/srt/348035

[XBMC Subtitles-services.BetaSeries.service] - Error: [Errno socket error] (8, 'EOF occurred in violation of protocol')

This url is actually a redirection to https://www.betaseries.com/data/srt/tvsu...FQM.fr.zip

Here is the code that return this error :
Code:
def geturl(url):
    log( __name__ , " Getting url: %s" % (url))
    try:
        import urllib
        response = urllib.urlopen(url)
        content = response.read()
    except Exception, inst:
        log( __name__ , " Failed to get url: %s" % (url))
        log( __name__ , " Error: %s" % (inst))
        content = None
    return(content)

Version used is :
Quote:NOTICE: Starting XBMC, Platform: Windows 7, 64-bit (WoW) build 7600. Built on Mar 8 2011 (Git:e9e9099, compiler 1500)

I've tried to reproduce this issue at home, on 2 different hardware, and everything works perfectly.
I really don't know how to fix this issue so any help would be most welcome.

Full log with this error : http://dl.dropbox.com/u/1973897/Divers/xbmcNew.log
Reply

Logout Mark Read Team Forum Stats Members Help
urllib and HTTPS issue0