Extraction: Move html post processing stuff from yt_data_extract to util

This commit is contained in:
James Taylor
2019-12-19 19:48:53 -08:00
parent 76376b29a0
commit d1d908d5b1
9 changed files with 50 additions and 52 deletions

View File

@@ -57,7 +57,7 @@ def get_local_playlist_videos(name, offset=0, amount=50):
info['thumbnail'] = util.get_thumbnail_url(info['id'])
missing_thumbnails.append(info['id'])
info['type'] = 'video'
yt_data_extract.add_extra_html_info(info)
util.add_extra_html_info(info)
videos.append(info)
except json.decoder.JSONDecodeError:
if not video_json.strip() == '':