Extraction: Move channel extraction to yt_data_extract

This commit is contained in:
James Taylor
2019-09-08 17:28:11 -07:00
parent fb1a3531c5
commit bd343ed71f
3 changed files with 124 additions and 121 deletions

View File

@@ -455,7 +455,7 @@ def _get_upstream_videos(channel_id):
print('Failed to read atoma feed for ' + channel_status_name)
traceback.print_exc()
videos = channel.extract_info(json.loads(channel_tab), 'videos')['items']
videos = yt_data_extract.extract_channel_info(json.loads(channel_tab), 'videos')['items']
for i, video_item in enumerate(videos):
if 'description' not in video_item:
video_item['description'] = ''