algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
228 stars 50 forks source link

Generated filename does not include {file_name} whereas documentation say it should #179

Open rkiesler1 opened 4 years ago

rkiesler1 commented 4 years ago

For an input filename like /tmp/12345hoh8fm76.pptx or /tmp/123456sm06q1u.pdf, I see a generated cache entry like this /tmp/preview_cache/3a10818d28a1187320c592c3ddccb949-800x800.jpeg and /tmp/preview_cache/d0ed7449186113d8d554ba08fdc3ddd7-800x800.jpeg respectfully, i.e., just the {file_md5sum}, {size} and the {extension} parts, but not the original {file_name}. (v0.13)

inkhey commented 4 years ago

Hello, You are right, documentation is not up to date, correct naming is like this (+ extension): https://github.com/algoo/preview-generator/blob/d8dd510dc8ecccaf8631e23d55e58029055aa9be/preview_generator/manager.py#L320