mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2025-12-12 11:05:42 +00:00
Specify UTF-8 encoding for xpath_element_js (#3650)
This commit is contained in:
@@ -439,7 +439,7 @@ class browsersteps_live_ui(steppable_browser_interface):
|
|||||||
logger.warning("Attempted to get current state after cleanup")
|
logger.warning("Attempted to get current state after cleanup")
|
||||||
return (None, None)
|
return (None, None)
|
||||||
|
|
||||||
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")
|
||||||
|
|
||||||
now = time.time()
|
now = time.time()
|
||||||
await self.page.wait_for_timeout(1 * 1000)
|
await self.page.wait_for_timeout(1 * 1000)
|
||||||
|
|||||||
Reference in New Issue
Block a user