From 2cfc821203036ae7780c32cdc5705db9008503a5 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 28 Oct 2022 14:18:52 +0200 Subject: [PATCH] Web: Allow configuring higher peekSize on Youtube --- plugins/Web/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index 0b2912720..a0c91d7df 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -154,7 +154,7 @@ class Web(callbacks.PluginRegexp): if parsed_url.netloc == 'youtube.com' \ or parsed_url.netloc.endswith(('.youtube.com')): # there is a lot of Javascript before the - size = 409600 + size = max(409600, size) if parsed_url.netloc in ('reddit.com', 'www.reddit.com', 'new.reddit.com'): # Since 2022-03, New Reddit has 'Reddit - Dive into anything' as # <title> on every page.