fix return for subtitle extract. Fixes #489

This commit is contained in:
clinton-hall 2014-07-14 21:51:06 +09:30
parent 35b74d5228
commit ddd947aeb0

View file

@ -374,7 +374,7 @@ def get_subs(file):
return subfiles return subfiles
def extract_subs(file, newfilePath, bitbucket): def extract_subs(file, newfilePath, bitbucket):
video_details = getVideoDetails(file) video_details, result = getVideoDetails(file)
if not video_details: if not video_details:
return return
subStreams = [item for item in video_details["streams"] if item["codec_type"] == "subtitle"] subStreams = [item for item in video_details["streams"] if item["codec_type"] == "subtitle"]