justfoolingaround / animdl

A highly efficient, fast, powerful and light-weight anime downloader and streamer for your favorite anime.
GNU General Public License v3.0
1.32k stars 109 forks source link

Sonarr compatible file name scheme? #290

Open IngwiePhoenix opened 1 year ago

IngwiePhoenix commented 1 year ago

Hello there!

I would like to integrate animdl into my Sonarr setup - and whilst I am aware that a direct integration is not very likely at this moment - unless I write a wrapper for it - I would still like to have Sonarr understand certain parts of existing files.

So how can I achieve a naming scheme akin to: $title/Season $S/[$site] $title S00E00 [$quality].$ext (where S and E are season and episode, respectively)?

I would like to add this to my config.yml so I don't have to re-do it every time. :)

Thanks and kind regards, Ingwie

okok7711 commented 9 months ago

This is pretty much a duplicate of #143, until there's an option for customizing filenames, there's not much that you can do

Directly integrating animdl (or anything for that matter) with Sonarr is pretty hard. I recently made a custom Indexer/Downloader combo that takes its releases from animetosho and uses DDL instead of Torrent/NZB, so I speak from experience.

If you wanted to implement it yourself you can still do it though if you know how to write REST APIs. Just follow these general steps:

That takes a lot of time (my project took about 8 hours for me to complete it) and I wouldn't really recommend it. It's better to just make a cronjob based on what you're trying to do or wait until #143 is implemented or implement it yourself in a fork of animdl