From 701786a9cc0aa21ef83fa17139599814662cf869 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 26 Dec 2020 20:11:44 -0800 Subject: util: Remove obsolete parse_info_prepare_for_html function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- youtube/util.py | 9 --------- 1 file changed, 9 deletions(-) (limited to 'youtube/util.py') 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: -- cgit v1.2.3