From ce602c10bd9aa5e20a61f2954a843c6b3a78b058 Mon Sep 17 00:00:00 2001 From: pivo Date: Wed, 27 Nov 2024 14:42:55 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20de=20cat=C3=A9gories=20=C3=A0=20ne=20pa?= =?UTF-8?q?s=20importer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/import_tasks/custom_extractors/lacomedie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agenda_culturel/import_tasks/custom_extractors/lacomedie.py b/src/agenda_culturel/import_tasks/custom_extractors/lacomedie.py index c33d796..ecad9c8 100644 --- a/src/agenda_culturel/import_tasks/custom_extractors/lacomedie.py +++ b/src/agenda_culturel/import_tasks/custom_extractors/lacomedie.py @@ -10,7 +10,7 @@ class CExtractor(TwoStepsExtractor): url_referer = "https://lacomediedeclermont.com/saison24-25/" def is_to_import_from_url(self, url): - if "on-debriefe" in url: + if any(keyword in url for keyword in ["podcast", "on-debriefe", "popcorn", "rencontreautour","rencontre-autour"]): return False else: return True