Bon, on est flex sur les urls

This commit is contained in:
Jean-Marie Favreau 2025-02-13 23:59:17 +01:00
parent 2547e2f082
commit c7766b022c

View File

@ -35,10 +35,10 @@ class ICALExtractor(Extractor):
# it seems that FMTTYPE is not available through python-icalendar
if isinstance(item, list):
for i in item:
if str(i).lower().endswith('.jpg'):
if '.jpg' in str(i).lower():
return str(i)
else:
if str(item).lower().endswith('.jpg'):
if '.jpg' in str(item).lower():
return str(item)
return None