Compare commits

..

7 Commits

Author SHA1 Message Date
dgtlmoon
e06275a4ad Tweak vars 2025-02-27 16:39:30 +01:00
dgtlmoon
acb642a937 Improved test install 2025-02-27 16:20:36 +01:00
dgtlmoon
3e7f2f2bad Add build debug 2025-02-27 16:16:11 +01:00
dgtlmoon
1f7a855529 Small CPU improvements 2025-02-27 16:01:41 +01:00
dgtlmoon
fa549b6e39 Woops 2025-02-27 15:44:28 +01:00
dgtlmoon
7ea66929e1 No need to read the temp response from disk 2025-02-27 15:39:43 +01:00
dgtlmoon
f682a80c43 BrowserSteps - Speed up scraping, refactor screenshot handling for very long pages 2025-02-27 15:34:02 +01:00
4 changed files with 3 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
# Read more https://github.com/dgtlmoon/changedetection.io/wiki
__version__ = '0.49.4'
__version__ = '0.49.3'
from changedetectionio.strtobool import strtobool
from json.decoder import JSONDecodeError

View File

@@ -88,7 +88,7 @@ def construct_blueprint(datastore: ChangeDetectionStore):
browsersteps_start_session['browserstepper'] = browser_steps.browsersteps_live_ui(
playwright_browser=browsersteps_start_session['browser'],
proxy=proxy,
start_url=datastore.data['watching'][watch_uuid].link,
start_url=datastore.data['watching'][watch_uuid].get('url'),
headers=datastore.data['watching'][watch_uuid].get('headers')
)

View File

@@ -29,11 +29,8 @@ function isItemInStock() {
'currently unavailable',
'dieser artikel ist bald wieder verfügbar',
'dostępne wkrótce',
'en rupture',
'en rupture de stock',
'épuisé',
'esgotado',
'indisponible',
'indisponível',
'isn\'t in stock right now',
'isnt in stock right now',
@@ -56,7 +53,6 @@ function isItemInStock() {
'niet op voorraad',
'no disponible',
'non disponibile',
'non disponible',
'no longer in stock',
'no tickets available',
'not available',
@@ -69,10 +65,8 @@ function isItemInStock() {
'não estamos a aceitar encomendas',
'out of stock',
'out-of-stock',
'plus disponible',
'prodotto esaurito',
'produkt niedostępny',
'rupture',
'sold out',
'sold-out',
'stokta yok',

View File

@@ -527,7 +527,7 @@ class model(watch_base):
def save_error_text(self, contents):
self.ensure_data_dir_exists()
target_path = os.path.join(self.watch_data_dir, "last-error.txt")
with open(target_path, 'w', encoding='utf-8') as f:
with open(target_path, 'w') as f:
f.write(contents)
def save_xpath_data(self, data, as_error=False):