fi none existing unset channel overwrite, #362

This commit is contained in:
simon
2022-11-25 18:18:02 +07:00
parent f7dd77ee3e
commit f619a5f72d

View File

@@ -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