mirror of
https://github.com/linuxserver/docker-changedetection.io.git
synced 2026-03-09 00:09:49 +08:00
Workaround for UTF encoding with browser steps
This commit is contained in:
parent
fe4acfd4a8
commit
7f087ea8f6
@ -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 \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user