Update channel stats on video delete
This commit is contained in:
parent
66ea7e61c1
commit
458b145caf
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue