Update channel stats on video delete

This commit is contained in:
Caleb Rogers 2026-06-19 23:22:13 +02:00
parent 66ea7e61c1
commit 458b145caf
1 changed files with 2 additions and 0 deletions

View File

@ -337,10 +337,12 @@ class YoutubeVideo(YouTubeItem, YoutubeSubtitle):
except FileNotFoundError:
print(f"{self.youtube_id}: failed {media_url}, continue.")
channel_id = self.json_data["channel"]["channel_id"]
self.del_in_playlists()
self.del_in_es()
self.delete_subtitles()
self.delete_comments()
ta_channel.YoutubeChannel(channel_id).update_channel_stats()
def del_in_playlists(self):
"""remove downloaded in playlist"""