fix clean exit if no subtitles selected

This commit is contained in:
simon 2022-02-11 09:03:56 +07:00
parent 656a0c7327
commit af8e01cd8c
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -27,6 +27,7 @@ class YoutubeSubtitle:
def sub_conf_parse(self):
"""add additional conf values to self"""
languages_raw = self.video.config["downloads"]["subtitle"]
if languages_raw:
self.languages = [i.strip() for i in languages_raw.split(",")]
def get_subtitles(self):