Commit 5568d4e7 authored by Thomas Bernhart's avatar Thomas Bernhart
Browse files

Correctly return original file name for thumbnails

parent 17b99468
......@@ -33,7 +33,7 @@ class MediaFileSearcher:
thumbnail_file = self.foxml_reader.get_thumbnail_datastream_file()
if thumbnail_file is not None:
ext = path.splitext(self.foxml_reader.get_thumbnail_datastream_original_filename())[1]
return path.join(self.datastream_store_path, thumbnail_file), ext
return path.join(self.datastream_store_path, thumbnail_file), path.basename(self.foxml_reader.get_thumbnail_datastream_original_filename())
else:
return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment