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:
parent
e1fe6b1d8e
commit
701786a9cc
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user