How to set up anime batch download to streaming pipeline using WSL
Jellyfin setup#
Windows/#
Step 1: Download Jellyfin from the official website: https://jellyfin.org/downloads/windows Noting to download the SERVER installer. Step 2: Follow wizard instructions and complete installation. Step 3: Launch Jellyfin.Windows.Tray.exe if the installer does not already launch the service.
Ubuntu/#
apt-get update && sudo apt-get upgrade -y && sudo apt-get install curl && curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash
the above commands does the following; updates the system, installs curl, and installs Jellyfin in that location.
Once installed, Jellyfin will be running as a service. Manage it with sudo systemctl {action} jellyfin.service
or sudo service jellyfin {action}
.
Docker/#
If you are going to install with docker I assume you are knowledgeable about docker and have already installed it so I will not cover this. you can instead visit this link. https://docs.docker.com/engine/install/
docker pull jellyfin/jellyfin:latest # or docker pull ghcr.io/jellyfin/jellyfin:latest
mkdir -p /srv/jellyfin/{config,cache}
docker run -d -v /srv/jellyfin/config:/config -v /srv/jellyfin/cache:/cache -v /media:/media --net=host jellyfin/jellyfin:latest
post installation setup#
After completing the above steps congruent with your operating system/method to run of choice, Jellyfin will start broadcasting to localhost:8096
You will be asked to make an admin account, do so and log in.
Next it’s time to add some libraries for Jellyfin to pull from.
You can select a content type from these selections
!
For the purposes of this tutorial I will be selecting content type: Shows and calling the library anime.
Point towards your download location in the folders selection, which in my case is D:\visual media\anime\anime
at this point you have jellyfin fully set up for the purpose of anime shows, if you want to also store anime movies, live action, literature, audio books,… you can make different libraries in the jellyfin dashboard.
downloading batch anime with ani-cli#
From this point onward I’m only going to show you how to use ani-cli with WSL Ubuntu, inarguably the easiest way to run it, which also works with regular ubuntu in the same way. if you want to use other operating systems you can browse the ani-cli github page for instructions. https://github.com/pystardust/ani-cli
firstly install wsl. open a windows powershell terminal as administrator and enter the following.
wsl --install
this will install ubuntu as well as it is the default distro WSL uses
ani-cli offers an easy install with apt
sudo apt update && sudo apt upgrade -y && sudo apt install ani-cli
again the above command updates the system, then installs ani-cli. after installation is complete you are set to download.
It is important to note that ani-cli downloads in the folder that the terminal is pointing to.
I will now show you an example for navigating to the anime library, making a new folder, and downloading a new full anime in said folder.
The example I will be using will be the first anime I ever watched, where I was old enough to realize I was watching Japanese animation, being soul eater, yes I realize I just dated myself as being a zoomer.
notice in the below code fence the ani-cli command being; ani-cli -d (DOWNLOAD) -r (EPISODE DOWNLOAD RANGE) “RANGE VALUE” “ANIME NAME”
a 1 to 2000 range might seems exorbitant but shows the power of ani-cli batch downloading, this made it exceedingly easy to download let’s say the entirety of one piece.
you can use this range anywhere, and ani-cli will skip already downloaded episodes.
some anime will have an episode 0, and if so you should change the start of range from 0 to 1 ending the range with however high a number you want.
HOWEVER you cannot use this regularly because if an anime does not have an episode 0 the program will throw an error.
cd /mnt/DRIVE LETTER/YOUR/PATH/TO/LIBRARY
mkdir "soul eater"
cd soul\ eater/
ani-cli -d -r "1 2000" "soul eater"
in my example of soul eater there are multiple shows available as such
!
in this case I am downloading the original and will select as such.
the anime will now start downloading, cycling through all episode included in the range.
!
in the case of anime with multiple seasons you will want to make a season directory within the anime folder, as such cd /mnt/DRIVE LETTER/YOUR/PATH/TO/LIBRARY/InitialD/Third\ stage/
watching on Jellyfin#
after downloading is complete Jellyfin will automagically refresh the library, in small libraries this will happen within a period of 10 seconds, with larger libraries it will take longer.
Just open Jellyfin and enjoy your anime.
You now have a fully functioning anime batch download to local streaming service up and running.
You can of course also open up the port 8096 on your router so you can enjoy your anime from anywhere in the world.
DON’T BE STUPID, STUPID#
I DO NOT CONDONE THE ACUMULATION OF MONETARY GAINS FROM THE USAGE OF THESE SYSTEMS OR MY TUTORIAL, ANY USERS WHO DISSEMINATE THE SHOWS THEY DOWNLOAD FOR INDIVIDUAL GAINS ARE THEMSELVES RESPONSIBLE FOR THEIR ACTIONS.
THANK YOU FOR READING THIS TUTORIAL#
!