Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonarr compatible file name scheme? #290

Open
IngwiePhoenix opened this issue Nov 2, 2023 · 1 comment
Open

Sonarr compatible file name scheme? #290

IngwiePhoenix opened this issue Nov 2, 2023 · 1 comment

Comments

@IngwiePhoenix
Copy link

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
Copy link

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:

  • Write an indexer in the NewzNab/TorzNab format (you can just get the items from an existing RSS/API if you want to)
  • Write a Downloader that impersonates one of the available download clients on Sonarr (I went with NZBVortex). If you make a NewzNab indexer, you need to impersonate an NZB downloader, otherwise you need to impersonate a Torrent downloader
  • Make your indexer respond with a Pseudo NZB or Pseudo Torrent that contains info about your release (in this case it'd be the season, episode and series name)
  • Make your downloader extract that info from your Pseudo File and handle it by calling animdl with the corresponding info

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants