Update utils.py

This commit is contained in:
Abdist
2025-01-16 13:54:07 +01:00
committed by GitHub
parent 39703d9eca
commit 8209adec62

View File

@@ -164,14 +164,14 @@ def write_search_results(
done done
echo test echo test
#echo "{get_true_fg('Description:',*HEADER_COLOR).replace('"',SINGLE_QUOTE)}" #echo "{get_true_fg('Description:',*HEADER_COLOR).replace('"',SINGLE_QUOTE)}"
"""
template = textwrap.dedent(template) template = textwrap.dedent(template)
template = f""" template = f"""
{template} {template}
echo ' echo "
{textwrap.fill( {textwrap.fill(clean_html(
clean_html(anime.get('description', '').strip()).replace('"', SINGLE_QUOTE), width=45 clean_html(anime.get('description', '')).replace('"', SINGLE_QUOTE), width=45
)} "
'
""" """
future_to_task[executor.submit(save_info_from_str, template, title)] = title future_to_task[executor.submit(save_info_from_str, template, title)] = title