Tony Miller
2017-06-14 01:09:05 UTC
Hi,
I'd like to create a custom protocol that is exactly the same as the
http,https protocols, but leaves the files in /tmp and reuses them
(caching) if they are already downloaded. Is this possible? I know caching
is not a simple issue.
I was looking through scripts/protocols.liq, but I couldn't quite figure
out what exactly controls the somewhat random looking output filenames
(/tmp/liq02469a.mp3, etc).
It looks like there is a file.exists function as well, so seems like this
could be possible. I'm sure there are lots of edge cases though, as is per
the course with any sort of caching.
Thanks!
I'd like to create a custom protocol that is exactly the same as the
http,https protocols, but leaves the files in /tmp and reuses them
(caching) if they are already downloaded. Is this possible? I know caching
is not a simple issue.
I was looking through scripts/protocols.liq, but I couldn't quite figure
out what exactly controls the somewhat random looking output filenames
(/tmp/liq02469a.mp3, etc).
It looks like there is a file.exists function as well, so seems like this
could be possible. I'm sure there are lots of edge cases though, as is per
the course with any sort of caching.
Thanks!
--
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us