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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -