python-opensubtitles icon indicating copy to clipboard operation
python-opensubtitles copied to clipboard

Method search_subtitles does not work if moviebytesize > 2147483647 (int32) (OverflowError)

Open usilitel opened this issue 2 years ago • 0 comments

I try to search subtitles by moviehash and moviebytesize:

ost.search_subtitles([{'sublanguageid':language, 'moviehash':movie_hash, 'moviebytesize':movie_bytesize}])

If parameter movie_bytesize > 2147483647 (int32) - then I get this error: OverflowError('int exceeds XML-RPC limits')

But if I run original opensubtitles.org API with same parameters - everything works fine.

I attached examples of request and response from http://api.opensubtitles.org/xml-rpc (token should be fresh). Request to http://api.opensubtitles.org/xml-rpc: xml-rpc-request.zip Response from http://api.opensubtitles.org/xml-rpc: xml-rpc-response.zip

I found similar question here: https://stackoverflow.com/questions/72336127/python-robot-remote-server-overflowerror-int-exceeds-xml-rpc-limits May be it will help.

usilitel avatar Jan 14 '23 04:01 usilitel