I found a python wrapper for opensubtitles.org's API in github, which has pretty good documentation.So, i started trying out some methods but unfortunately i am getting an error. I figured out that searchsubtitles() method is returning a null list. Can anyone help me?
from pythonopensubtitles.opensubtitles import OpenSubtitlesfrom pythonopensubtitles.utils import Fileimport easyguiost = OpenSubtitles() username=easygui.enterbox("Enter username:")password=easygui.passwordbox("Enter Password:")ost.login(username,password)video_file_path=easygui.fileopenbox()print(video_file_path)video_file=File(video_file_path)video_hash=video_file.get_hash()video_file_size=video_file.sizeprint(video_hash,video_file_size)search_result=ost.search_subtitles([{'sublanguageid': 'all', 'moviehash':video_hash, 'moviebytesize':video_file_size }])id_subtitle = search_result[0].get('IDSubtitle')print(id_subtitle)ost.logout()
