Python pysrt index error -
Python pysrt index error -
i have used pysrt befor , programs runs well; when want utilize know recieve error:
traceback (most recent phone call last): file "", line 1, in subs[0].text file "c:\python27\lib\userlist.py", line 31, in getitem def getitem(self, i): homecoming self.data[i] indexerror: list index out of range
my code :
subs = pysrt.open(my_file_location, encoding='iso-8859-1') subs[0].text
i think file not opened well. help needed.
python python-2.7 encoding subtitle srt
Comments
Post a Comment