aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/transforms/elasticsearch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/transforms/elasticsearch.py b/python/fatcat_tools/transforms/elasticsearch.py
index 971d1c11..91086a0c 100644
--- a/python/fatcat_tools/transforms/elasticsearch.py
+++ b/python/fatcat_tools/transforms/elasticsearch.py
@@ -137,7 +137,7 @@ def release_to_elasticsearch(entity, force_bool=True):
if f.extra and f.extra.get('shadows'):
# TODO: shadow check goes here
in_shadows = True
- is_pdf = 'pdf' in (f.mimetype or '')
+ is_pdf = 'pdf' in (f.mimetype or '') or 'pdf' in url.lower()
for url in (f.urls or []):
if url.url.lower().startswith('http'):
in_web = True