From af8e01cd8ce280fd3c4d54ea4418b7b7eedb9e96 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 11 Feb 2022 09:03:56 +0700 Subject: [PATCH] fix clean exit if no subtitles selected --- tubearchivist/home/src/index/video.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/src/index/video.py b/tubearchivist/home/src/index/video.py index e2695d4..c4d48fb 100644 --- a/tubearchivist/home/src/index/video.py +++ b/tubearchivist/home/src/index/video.py @@ -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"""