aboutsummaryrefslogtreecommitdiff

AutoMedia

Automatically track new releases of media and download them. Currently works with rss for torrent sites (nyaa.si) and for these manga sites: manganelo.com, manganelos.com, mangatown.com, mangakakalot.com, mangakatana.com, lhtranslation.net, mangaplus.shueisha.co.jp and mangadex.org.
A notification is shown on the screen when a download finishes (if notify-send is installed).
AutoMedia checks and downloads updates every 15 minutes. Torrents stop seeding after a ratio of 2.0.\

Installation

Run sudo ./install.sh to install AutoMedia. It will build automedia with musl if installed, otherwise it will use gcc/clang (whichever you have configured as the default). If you are running Arch Linux, then you can find AutoMedia on aur under the name automedia-git (yay -S automedia-git).
There is also a prebuilt binary of the latest commit for x86_64 systems available at https://dec05eba.com/files/automedia.

Usage

Run automedia with sync option and keep it running to track media. You can then use add option to add new media to track.
Removing media from being synced can be done by removing the tracked directory in ~/.config/automedia/rss/tracked or ~/.config/automedia/html/tracked or by using automedia cleanup.
It is recommended to create a new directory specifically for automedia sync, otherwise tools like open_media.py might not work correctly.
Run automedia without any options to see all options.

If $HOME/.config/automedia/download_finished.sh exists then it's called when a download finishes. The first argument is either html or rss and the second argument is the full path to the rss file (anime episode video) or html directory (manga chapter).

An easy way to track anime/manga is to use QuickMedia and pressing Ctrl+T in nyaa.si or any of the manga plugins when selecting a manga and chapter.

Requirements

System

curl, transmission-cli, notify-send (optional)

Python 3

lxml, requests

Requirements when using tools/open_media.py

System

dmenu, sxiv (for manga), mpv (for anime)

Important

Do not move files inside the download directory. If you want to move them, move the whole download directory when automedia is not running and then set the download directory to the new location when using sync command.

Dev info

titles of manga need to be stripped of spaces on both ends and replace all / with _.