Workaround for UTF encoding with browser steps

This commit is contained in:
thespad 2024-10-14 17:31:22 +01:00
parent fe4acfd4a8
commit 7f087ea8f6
No known key found for this signature in database

View File

@ -1,5 +1,8 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# Force UTF-8 encoding for browser steps to prevent exception
sed -i "s|xpath_element_js = importlib.resources.files(\"changedetectionio.content_fetchers.res\").joinpath('xpath_element_scraper.js').read_text()|xpath_element_js = importlib.resources.files(\"changedetectionio.content_fetchers.res\").joinpath('xpath_element_scraper.js').read_text(encoding='utf-8')|" /app/changedetection/changedetectionio/blueprint/browser_steps/browser_steps.py
lsiown -R abc:abc \
/config \