From 94d62430a00028ea9628bb47ea5972ac0ded8c89 Mon Sep 17 00:00:00 2001 From: AdeHub Date: Sat, 7 Dec 2024 09:55:00 +1300 Subject: [PATCH] Ignore bs4 warning --- headphones/request.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/headphones/request.py b/headphones/request.py index a685f65b..ef1bc7b7 100644 --- a/headphones/request.py +++ b/headphones/request.py @@ -23,6 +23,9 @@ from headphones import logger import feedparser import headphones import headphones.lock +from bs4.builder import XMLParsedAsHTMLWarning +import warnings +warnings.filterwarnings("ignore", category=XMLParsedAsHTMLWarning) # Disable SSL certificate warnings. We have our own handling