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>
This commit is contained in:
James Taylor 2020-12-26 20:11:44 -08:00 committed by Jesús
parent e1fe6b1d8e
commit 701786a9cc
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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: