decode url strings in text_parser

This commit is contained in:
smilerz
2021-04-15 09:53:45 -05:00
parent b115c37eb8
commit fef5236931
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ from cookbook.helper import recipe_url_import as helper
from cookbook.helper.scrapers.scrapers import text_scraper
from json import JSONDecodeError
from recipe_scrapers._utils import get_host_name, normalize_string
from urllib.parse import unquote
def get_recipe_from_source(text, url, space):
def build_node(k, v):
@ -72,6 +72,7 @@ def get_recipe_from_source(text, url, space):
parse_list = []
html_data = []
images = []
text = unquote(text)
# text = normalize_string(text)
try: