From 89f561d043ee6576289204e1ee62860d46e48821 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 28 Dec 2024 12:17:00 +0200 Subject: [PATCH] Fix language --- get_youtube_videos/get_youtube_videos.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/get_youtube_videos/get_youtube_videos.py b/get_youtube_videos/get_youtube_videos.py index f107c7c..eaf9980 100644 --- a/get_youtube_videos/get_youtube_videos.py +++ b/get_youtube_videos/get_youtube_videos.py @@ -53,7 +53,7 @@ class GetYoutubeVideos: 'entries_count': 0, 'skipped_videos': 0, 'downloaded_videos': 0, - 'error_videos': 0, + 'videos_with_error': 0, } if os.path.exists(self.config['downloaded_database']): with open(self.config['downloaded_database'], 'r', encoding='utf-8') as db_file: @@ -218,7 +218,7 @@ class GetYoutubeVideos: "Error getting video. %s", error ) - self.summary['error_videos'] += 1 + self.summary['videos_with_error'] += 1 break self.summary['downloaded_videos'] += 1 else: @@ -232,7 +232,7 @@ class GetYoutubeVideos: "Error! Video ID not found in URI '%s'", entry['link'] ) - self.summary['error_videos'] += 1 + self.summary['videos_with_error'] += 1 self.summary['entries_count'] += self.entries_count self.summary['processed_channels'] = self.channels_count self.summary['total_count'] = self.total_count