pull/26/head
Louis Vézina 7 years ago
parent 90b802d128
commit 783cc067fd

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

Loading…
Cancel
Save