datasette-media icon indicating copy to clipboard operation
datasette-media copied to clipboard

media-key with spaces are not unquoted

Open fmarani opened this issue 4 years ago • 0 comments

I have keys in my sqlite db that contains spaces, and when i generate media urls like http://localhost:8001/-/media/thumbnails/Google%20Photos/Algarve/IMG_XXX.jpg those do not match any existing key.

I think line 30 of the __init__.py file needs an extra call to urllib.parse.unquote?

fmarani avatar Dec 12 '20 16:12 fmarani