Track and launch media.
Locally tracks episode completion and automatic Anilist updating. Rofi launcher shows shows in most recently played order.
- Install rofi.
git clone
this repository and install dependencies (natsort and rofi-blocks)- Open
install.sh
and review thepath
andmpv
variables -- they should correspond to their respective areas in your machine. - Run
install.sh
(./install.sh
) - Edit
media_dir
inmedia_launcher
to point to the master media directory. Editmediadir_name
inmpv/update_ep.lua
to be the name of the folder containing media (i.eAnime
; make sure directory names are same between master directory and other directories). This supports symlinking across drives.* - In
helpers/secrets.py
, fill in your token. Obtain a token here (courtesy of MrScopes/anilist.js)
*make this process more user friendly
- Bind a key in window manager of choice to execute
media_launcher
. - Use the keybind to open the launcher.
- In mpv,
ctrl+w
manually completes the current episode (next episode plays on start).ctrl+shift+w
completes the previous episode (current episode plays on start). Alt+a
to find and select the anilist show at the beginning of a new series.
Example
- Attack on Titan/S1
- Attack on Titan/S2
- Attack on Titan/S3
In the first episode of S1, press Alt+a
to select the first season using the provided anilist searcher via rofi. Proceed accordingly with S2 and S3. This sets an appropriate offset between the local episode number and anilist.
This script expects a standard layout for media: The folder contains the title with media files contained directly in them. It is able to handle subdirectories. (i.e S1 and S2 subdirectories)
See a video demo here
- Easily handle configuration (currently multiple instances of
media_dir
; hard to change)