Recently my Raspberry Pi had a corrupt partition on the SD card so i was forced to reinstall from scratch. Although i had a backup of my scripts i had to download and configure the applications i was using.
I noticed when i was browsing my previous blog post on FileBot that the version i was using is no longer available. As such i have decided to write a new blog post outlining what is needed to get the latest version working.
First off if you dont know what FileBot is its a really great app that automates the renaming of TV shows and Movies. I use it to automatically rename files and move them to my NAS so OSMC will automatically detect and add them to the library. For more information have a read of the FileBot website.
FileBot requires Java run time, im not going to go into details on how to set this up but i personally used this blog post and it worked for me:
Im using Raspbian Jessie Lite, from my understanding if you are using the full Raspbian Java is already included but you might want to check that. You can run the following command to check:
Once Java is setup we we need to ensure you are in the pi home directory
Create a new directory in here, this will store the FileBot application
We need to download the latest version of FileBot, from my research the ipk file i was using in my previous blog post doesnt exist and the version that does exist gives an error in regards to a blacklist.xml file not being found on the internet.
The latest version doesnt include an ipk version, as such we will use the portable version as that includes the filebot.jar and the filebot.sh script we need.
The downloads are located here: https://sourceforge.net/projects/filebot/files/filebot/
Look for the latest “portable.tar.xz” version and download it to your pi home directory
Extract the files from the tar to our filebot folder
tar xpvf FileBot_4.7.9-portable.tar.xz -C /home/pi/filebot
Thats it, we can now call filebot via a script pointing your script to /home/pi/filebot/filebot.sh
/home/pi/filebot/filebot.sh -rename path/to/episodes
There is some great command line documentation available on the FileBot website here: http://www.filebot.net/cli.html