Replying to Avatar Podverse

nostr:npub1yqwcsafkzl4fequd25qg6yvmyxusk8gmpe7hkpfcnzc34afx4npsfhwajx nostr:npub1jtm4dxvu3ccgk60wvvt0uw9j9vz7nuc80f7agrv0vgkkushxk5zq0rrxtn nostr:npub1dft4ckvyhfpw3n56zm8j42nzrjeummudr2vmkf304eu5jhnn0ahqz7ta3d

I see what's going on. The image URL's in James's chapters file are using an encoded URL parameter format that our "local image caching" handler can't handle. PV is assuming the image URLs end with a file extension (.jpg, .png, etc.) but these do not. We need to assign a file extension before saving images to our cache.

I actually don't even know how we can reliably parse out what the image file type is for URLs like this. Anyone have ideas?

https://files.james.cridland.net/random-music-thing.json

nostr:npub1yqwcsafkzl4fequd25qg6yvmyxusk8gmpe7hkpfcnzc34afx4npsfhwajx nostr:npub1jtm4dxvu3ccgk60wvvt0uw9j9vz7nuc80f7agrv0vgkkushxk5zq0rrxtn nostr:npub1dft4ckvyhfpw3n56zm8j42nzrjeummudr2vmkf304eu5jhnn0ahqz7ta3d

one thing I could try is to force coerce the images into a default image type if we can't parse an image extension out of the URL. For example, use the .jpg file type extension for all images we save in our cache that we can't detect from the URL. I'm not sure that will work though but it could be a simple change.

Reply to this note

Please Login to reply.

Discussion

No replies yet.