Compare commits

..

4 Commits

4 changed files with 13 additions and 1536 deletions

View File

@@ -1,3 +1,4 @@
recursive-include changedetectionio/api *
recursive-include changedetectionio/templates *
recursive-include changedetectionio/static *
recursive-include changedetectionio/model *

View File

@@ -43,7 +43,7 @@ from flask_wtf import CSRFProtect
from changedetectionio import html_tools
from changedetectionio.api import api_v1
__version__ = '0.39.14'
__version__ = '0.39.14.1'
datastore = None

View File

@@ -89,14 +89,22 @@ class Fetcher():
xpath_result =d;
}
} catch (e) {
var x=1;
console.log(e);
}
// You could swap it and default to getXpath and then try the smarter one
// You could swap it and default to getXpath and then try the smarter one
// default back to the less intelligent one
if (!xpath_result) {
xpath_result = getXPath(elements[i]);
try {
// I've seen on FB and eBay that this doesnt work
// ReferenceError: getXPath is not defined at eval (eval at evaluate (:152:29), <anonymous>:67:20) at UtilityScript.evaluate (<anonymous>:159:18) at UtilityScript.<anonymous> (<anonymous>:1:44)
xpath_result = getXPath(elements[i]);
} catch (e) {
console.log(e);
continue;
}
}
if(window.getComputedStyle(elements[i]).visibility === "hidden") {
continue;
}

1532
f

File diff suppressed because one or more lines are too long