diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-12-19 19:48:53 -0800 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-12-19 19:48:53 -0800 |
commit | d1d908d5b1aadb0dc75b25df1a47789c021f89e2 (patch) | |
tree | 56a1a0e8361a732241774fee35ae521858d16d5f /youtube/playlist.py | |
parent | 76376b29a0adf6bd6d7a0202d904f923bdc8aa57 (diff) | |
download | yt-local-d1d908d5b1aadb0dc75b25df1a47789c021f89e2.tar.lz yt-local-d1d908d5b1aadb0dc75b25df1a47789c021f89e2.tar.xz yt-local-d1d908d5b1aadb0dc75b25df1a47789c021f89e2.zip |
Extraction: Move html post processing stuff from yt_data_extract to util
Diffstat (limited to 'youtube/playlist.py')
-rw-r--r-- | youtube/playlist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube/playlist.py b/youtube/playlist.py index 5dc8ab7..3ca235a 100644 --- a/youtube/playlist.py +++ b/youtube/playlist.py @@ -97,10 +97,10 @@ def get_playlist_page(): if page != '1': info['metadata'] = yt_data_extract.extract_playlist_metadata(first_page_json) - yt_data_extract.prefix_urls(info['metadata']) + util.prefix_urls(info['metadata']) for item in info.get('items', ()): - yt_data_extract.prefix_urls(item) - yt_data_extract.add_extra_html_info(item) + util.prefix_urls(item) + util.add_extra_html_info(item) if 'id' in item: item['thumbnail'] = '/https://i.ytimg.com/vi/' + item['id'] + '/default.jpg' |