Using Sonarr through console

Hello Everyone,

Yesterday I discovered Sonarr and became enamored with it. It is the PVR solution that I’ve been looking for, as I’ve explored the program there have been road bumps to achieving what I’m looking for.

My planned setup is to use Task Scheduler:
Asleep PC wakes up @ 7am
Through CMD Sonarr activates and manually refreshes Rss
Episodes download
Computer falls asleep again

3 problems have come up

  • Console: I haven’t been able to activate Sonarr through the Console; I’ve tried through the API and NbzDrone.Console.Exe but can’t figure out how.

  • Duplicates: Once my torrents are downloaded and imported, the files are in the designated Sonarr folder as well as the original folder they were put into by the Torrent client. (I have Remove activated in “Complete Download Handling”)

  • Auto-Download: Torrents don’t download automatically, I have to do automatic search for the episodes to download

Some other things I haven’t been able to figure out:

  • Browser: How to run Sonarr without it opening the browser (I only care about this option if Sonarr can be run through the command prompt)
  • uTorrent: Can Sonarr start Utorrent when it sends a download request
  • Renaming: Can the date parameters be customized so they don’t display the year, and can the other info parameters be modified as well?

I know these are a lot of different requests, but I’d appreciate help on any of them

Thank You :smile:

Starting NzbDrone.Console.exe will run via the console, but you can’t interact with Sonarr beyond stopping its process.

They won’t be removed until seeding is finished, otherwise they are copied or hard linked depending on the option chosen in Sonarr’s settings and whether your setup supports hard links.

https://github.com/Sonarr/Sonarr/wiki/FAQ#how-does-sonarr-find-episodes - log files will indicate why it rejected a release, but if Sonarr isn’t online it can’t auto grab from the RSS feed.

There is an option in General settings

No, uTorrent needs to be running.

Yes, turn on advanced options to the full renaming options (click to + to see the options available).

Thanks for the reply Markus,

If you will I just have a couple more questions.

I have advanced options open and the example text I get for Daily Episodes is

“2013.10.30 Episode Title 1 HDTV-720p Series Title (2010)”

and I was wondering if it could be customized to look like this

"10.30 Episode Title HDTV-720p Series Title


What’s the syntax for refreshing the rss feed through the API?
I don’t know much about HTTP requests; I’ve tried through the URL with

192.168.0.10:38082/api/series?apikey=xxxxxxxxxxxxxxxxxxxx?parameter=RssSync

But I get

{
“error”: “Unauthorized”
}

and do it through an online HTTP request tool (Hurl.it) and it times out
As I want to do it through a command line could it be done with cURL?


Does this mean if I tell uTorrent to stop seeding once a torrent is downloaded Sonarr will delete it?

All these problems make me wonder if there’s an easier way to do this or if it’s difficult because Sonarr wasn’t designed to be used this way

Once again thank you and cheers

No, it needs to be a full date so Sonarr is able to parse it.

Check out the Commands API docs on our wiki, the command you want to use is RssSync and make sure you’re using the correct API key, thats the only thing that will cause the Unauthorized response. Curl should be fine.

Correct, once its finished seeding (and stopped) Sonarr will remove it.

Thanks Marcus,

I’ve been able to organize everything to my liking and Sonarr is working

You’re the best!!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.