-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caching remote gifs are saved based on their remote filename and not overwritten #105
Comments
Created pull request #106 to resolve. |
Good catch @KelvinTegelaar! This is actually expected behaviour... but I hadn't thought through enough the case where images were named the same but are actually different (prime culprits of this being giphy and generic "image.png"). The intention was that you could reference a large image and grab a local copy of it that you can reference repeatedly (using the online URI) without having to download it everytime. I think what might work here is instead of just taking the file name, we take all (or part) of the URI and use that in the local filename. e.g.
In addition, maybe a switch could be added to |
How about:
Which would make:
not as clean as your example, but it does make life easier. ;) |
It'll work. Humans don't need to interact with the resulting file 😂 I haven't tested anything, but assume that No more splitting, love it. |
updated PR #106 with fix. :) |
v0.7.2 has shipped with this fix in place, thanks again @KelvinTegelaar! |
Steps to reproduce
Expected behavior
$Heroimage and $Heroimage 2 are expected to be 2 different images, instead its both $heroimage
Actual behavior
It seems that the cached file retains its previous name. if the name is a duplicate it no longer downloads the file believing it's already been cached.
Environment data
The text was updated successfully, but these errors were encountered: