From 06fbea0a8e2044054761dce7a964456e5dae7df6 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Thu, 11 May 2023 15:18:29 +0200 Subject: [PATCH] fix comment --- changedetectionio/content_fetcher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/changedetectionio/content_fetcher.py b/changedetectionio/content_fetcher.py index 12058bc6..2deae7a9 100644 --- a/changedetectionio/content_fetcher.py +++ b/changedetectionio/content_fetcher.py @@ -377,8 +377,7 @@ class base_html_playwright(Fetcher): if ( disk_cache_dir ) {{ page.on('response', async (response) => {{ const url = response.url(); - // @todo - check response size() - + // Basic filtering for sane responses if(response.request().method() != 'GET' || response.request().resourceType() == 'xhr' || response.request().resourceType() == 'document' || response.status() != 200 ) {{ console.log("Skipping (not useful) - Status:"+response.status()+" Method:"+response.request().method()+" ResourceType:"+response.request().resourceType()+" "+url); return;