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
1 changed files with 2 additions and 1 deletions

View File

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