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

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
rv23
Posts: 64
Joined: 19 Jul 2020, 15:05

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

Post 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.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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')
:idea: Please read the FAQ and How to Request Help.
Post Reply