Page 1 of 1

How would I use filebot cache with an xml file that needs gzip compression first?

Posted: 16 Sep 2020, 21:41
by rv23
I'd like to have filebot cache the following file (in xml) - http://anidb.net/api/anime-titles.xml.gz

I've seen a few examples in the forums on caching xml that is a direct download, but nothing on how you would download it, decompress it and then cache it.



As for why, it has Series Synonyms in it, which I would like to use.

Re: How would I use filebot cache with an xml file that needs gzip compression first?

Posted: 17 Sep 2020, 01:51
by rednoah
rv23 wrote: 16 Sep 2020, 21:41 I've seen a few examples in the forums on caching xml that is a direct download, but nothing on how you would download it, decompress it and then cache it.
The easiest way would be to download and extract that file manually, and update it manually on a schedule as necessary, independently of FileBot.


Once you have a local copy of that file, then you can just read it as usual with the built-in helpers:

Code: Select all

xml('/local/path/to/file.xml')