From ebf53f6486ae669f9049e85bcafab71ba20ac575 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 21 Nov 2022 14:55:47 +0700 Subject: [PATCH] fix channel deactivation --- tubearchivist/home/src/index/channel.py | 3 +++ tubearchivist/home/src/index/reindex.py | 1 + 2 files changed, 4 insertions(+) diff --git a/tubearchivist/home/src/index/channel.py b/tubearchivist/home/src/index/channel.py index 7108d432..4b2ecb30 100644 --- a/tubearchivist/home/src/index/channel.py +++ b/tubearchivist/home/src/index/channel.py @@ -193,6 +193,9 @@ class YoutubeChannel(YouTubeItem): if not self.json_data and fallback: self._video_fallback(fallback) + if not self.json_data: + return + self.get_channel_art() def _video_fallback(self, fallback): diff --git a/tubearchivist/home/src/index/reindex.py b/tubearchivist/home/src/index/reindex.py index b8b89f02..6e085cda 100644 --- a/tubearchivist/home/src/index/reindex.py +++ b/tubearchivist/home/src/index/reindex.py @@ -196,6 +196,7 @@ class Reindex: channel.get_from_youtube() if not channel.json_data: channel.deactivate() + channel.sync_to_videos() return channel.json_data["channel_subscribed"] = subscribed