diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-12-26 20:11:44 -0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-12-28 11:48:20 -0500 |
commit | 701786a9cc0aa21ef83fa17139599814662cf869 (patch) | |
tree | ae10e28e5e8a50a59e8ec26ecd7261e8d3be843b /youtube | |
parent | e1fe6b1d8e195de2c2fed8d9e6a06a6f4bc6f22c (diff) | |
download | yt-local-701786a9cc0aa21ef83fa17139599814662cf869.tar.lz yt-local-701786a9cc0aa21ef83fa17139599814662cf869.tar.xz yt-local-701786a9cc0aa21ef83fa17139599814662cf869.zip |
util: Remove obsolete parse_info_prepare_for_html function
Info parsing is handled by yt_data_extract, and html
post-processing is done with util.prefix_urls and
util.add_extra_html_info
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube')
-rw-r--r-- | youtube/util.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/youtube/util.py b/youtube/util.py index e7b12ad..e92fed5 100644 --- a/youtube/util.py +++ b/youtube/util.py @@ -1,5 +1,4 @@ import settings -from youtube import yt_data_extract import socks import sockshandler import gzip @@ -538,14 +537,6 @@ def add_extra_html_info(item): item['url'] = concat_or_none(URL_ORIGIN, "/channel/", item['id']) -def parse_info_prepare_for_html(renderer, additional_info={}): - item = yt_data_extract.extract_item_info(renderer, additional_info) - prefix_urls(item) - add_extra_html_info(item) - - return item - - def check_gevent_exceptions(*tasks): for task in tasks: if task.exception: |