add more debug

This commit is contained in:
Antonio J. Delgado 2024-12-12 15:47:30 +02:00
parent e84bc9896e
commit 2c41f46ca3

View file

@ -225,6 +225,7 @@ class GetYoutubeVideos:
self.summary['error_videos'] += 1
self.summary['entries_count'] += self.entries_count
self.summary['processed_channels'] = self.channels_count
self.summary['total_count'] = self.total_count
def _yt_progress_hook(self, data):
if data['status'] == 'finished':
@ -252,6 +253,11 @@ class GetYoutubeVideos:
json.dump(data, info_file, indent=2)
if 'id' in data['info_dict']:
self._save_downloaded_items(data['info_dict']['id'])
else:
self._log.debug(
"Progress hook got data['status']=%s instead of 'finished'",
data['status']
)
def _save_downloaded_items(self, video_id):