This commit is contained in:
Louis Vézina 2017-11-27 22:45:00 -05:00
parent 90b802d128
commit 783cc067fd
1 changed files with 1 additions and 2 deletions

View File

@ -14,7 +14,7 @@ from get_general_settings import *
def list_subtitles(file):
languages = []
actual_subtitles = []
if os.path.exists(file):
if os.path.exists(unicode(file)):
if os.path.splitext(file)[1] == '.mkv':
try:
with open(file, 'rb') as f:
@ -38,7 +38,6 @@ def list_subtitles(file):
def store_subtitles(file):
languages = []
actual_subtitles = []
print file
if os.path.exists(file):
if os.path.splitext(file)[1] == '.mkv':
try: