fix channel deactivation

This commit is contained in:
simon 2022-11-21 14:55:47 +07:00
parent 2450a4ad1d
commit ebf53f6486
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 4 additions and 0 deletions

View File

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

View File

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