This is one of my first projects in Python and I am encountering this issue. The code:
def get_sub(path):
server = xmlrpclib.Server(url)
token = server.LogIn('', '', 'en', 'OSTestUserAgent')['token']
print server.LogIn('', '', 'en', 'OSTestUserAgent')
sub_id = get_hash(path)
print sub_id
resp = server.DownloadSubtitles(token, [sub_id])
print resp
data = resp['data'][0]['data']
print data
The variable 'data' should be a base64 encoded and gzipped data but instead it outputs 'H4sIAAAAAAAAAwMAAAAAAAAAAAA=' (200 OK status code) which basically is a blank data. Tried checking the hash function with the sample from the API and it has no problem. I can't get my head around this one, any help would be appreciated. You can check the API here.