Bon, on est flex sur les urls
This commit is contained in:
parent
2547e2f082
commit
c7766b022c
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user