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
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 2 additions and 1 deletions

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