From f619a5f72dd55b54e9057d4d4cf8e9723e0eeafb Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 25 Nov 2022 18:18:02 +0700 Subject: [PATCH] fi none existing unset channel overwrite, #362 --- tubearchivist/home/src/index/channel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tubearchivist/home/src/index/channel.py b/tubearchivist/home/src/index/channel.py index 4b2ecb3..6e738bf 100644 --- a/tubearchivist/home/src/index/channel.py +++ b/tubearchivist/home/src/index/channel.py @@ -421,7 +421,8 @@ class YoutubeChannel(YouTubeItem): to_write[key] = False continue if value in [0, "0"]: - del to_write[key] + if key in to_write: + del to_write[key] continue if value == "1": to_write[key] = True