Compare commits

..

11 Commits

Author SHA1 Message Date
dgtlmoon 23c73cafa0 remove check 2023-01-29 21:07:42 +01:00
dgtlmoon b957dc9153 rss token now always required 2023-01-29 20:35:59 +01:00
dgtlmoon 7b54a5e533 remove dupe code 2023-01-29 20:14:03 +01:00
dgtlmoon ebd9c1cbc3 Simplify 2023-01-29 20:12:00 +01:00
dgtlmoon 8e9fe9c288 tidying up rss token test 2023-01-29 20:07:16 +01:00
dgtlmoon 9f1577331c Fix for RSS perms 2023-01-29 19:41:26 +01:00
dgtlmoon 952ba38b46 Refactor user session handling 2023-01-29 19:35:02 +01:00
dgtlmoon 8f5cb68319 Adding test 2023-01-29 15:37:42 +01:00
dgtlmoon 02682b288f Merge branch 'master' into share-diff 2023-01-29 15:05:57 +01:00
dgtlmoon 782ed32b05 WIP 2023-01-28 23:27:44 +01:00
dgtlmoon cb0d124a46 WIP 2023-01-28 16:54:00 +01:00
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -36,7 +36,7 @@ from flask import (
from changedetectionio import html_tools from changedetectionio import html_tools
from changedetectionio.api import api_v1 from changedetectionio.api import api_v1
__version__ = '0.40.2' __version__ = '0.40.1.1'
datastore = None datastore = None
@@ -53,6 +53,7 @@ app = Flask(__name__,
static_url_path="", static_url_path="",
static_folder="static", static_folder="static",
template_folder="templates") template_folder="templates")
from flask_compress import Compress
# Super handy for compressing large BrowserSteps responses and others # Super handy for compressing large BrowserSteps responses and others
FlaskCompress(app) FlaskCompress(app)
@@ -891,9 +892,8 @@ def changedetection_app(config=None, datastore_o=None):
system_uses_webdriver = datastore.data['settings']['application']['fetch_backend'] == 'html_webdriver' system_uses_webdriver = datastore.data['settings']['application']['fetch_backend'] == 'html_webdriver'
is_html_webdriver = False is_html_webdriver = True if watch.get('fetch_backend') == 'html_webdriver' or (
if (watch.get('fetch_backend') == 'system' and system_uses_webdriver) or watch.get('fetch_backend') == 'html_webdriver': watch.get('fetch_backend', None) is None and system_uses_webdriver) else False
is_html_webdriver = True
password_enabled_and_share_is_off = False password_enabled_and_share_is_off = False
if datastore.data['settings']['application'].get('password') or os.getenv("SALTED_PASS", False): if datastore.data['settings']['application'].get('password') or os.getenv("SALTED_PASS", False):
+2 -2
View File
@@ -297,8 +297,8 @@ class base_html_playwright(Fetcher):
proxy=self.proxy, proxy=self.proxy,
# This is needed to enable JavaScript execution on GitHub and others # This is needed to enable JavaScript execution on GitHub and others
bypass_csp=True, bypass_csp=True,
# Should be `allow` or `block` - sites like YouTube can transmit large amounts of data via Service Workers # Can't think why we need the service workers for our use case?
service_workers=os.getenv('PLAYWRIGHT_SERVICE_WORKERS', 'allow'), service_workers='block',
# Should never be needed # Should never be needed
accept_downloads=False accept_downloads=False
) )