add more debug
This commit is contained in:
parent
e84bc9896e
commit
2c41f46ca3
1 changed files with 6 additions and 0 deletions
|
@ -225,6 +225,7 @@ class GetYoutubeVideos:
|
||||||
self.summary['error_videos'] += 1
|
self.summary['error_videos'] += 1
|
||||||
self.summary['entries_count'] += self.entries_count
|
self.summary['entries_count'] += self.entries_count
|
||||||
self.summary['processed_channels'] = self.channels_count
|
self.summary['processed_channels'] = self.channels_count
|
||||||
|
self.summary['total_count'] = self.total_count
|
||||||
|
|
||||||
def _yt_progress_hook(self, data):
|
def _yt_progress_hook(self, data):
|
||||||
if data['status'] == 'finished':
|
if data['status'] == 'finished':
|
||||||
|
@ -252,6 +253,11 @@ class GetYoutubeVideos:
|
||||||
json.dump(data, info_file, indent=2)
|
json.dump(data, info_file, indent=2)
|
||||||
if 'id' in data['info_dict']:
|
if 'id' in data['info_dict']:
|
||||||
self._save_downloaded_items(data['info_dict']['id'])
|
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):
|
def _save_downloaded_items(self, video_id):
|
||||||
|
|
Loading…
Reference in a new issue