Sonarr, Deluge, extract rar files, partially extracted files copied over and some other questions

Hi

First off, thanks for an excellent piece of software :smile:

Problem 1
I’ve got some integration issues with Deluge…

  • Download to: /tank/dl/Downloads/Incomplete/Deluge
  • Move to: /tank/dl/Downloads/Complete/Deluge
  • Extractor: /tank/dl/Downloads/Complete/Deluge, create sub-folder with torrent name (to place it with the torrent)

Sonarr:

  • Completed Download Handling enabled.
  • Drone factory not enabled.

General:

  • Multiple volumes, /tank/dl, /tank/one, /tank/two, etc… Hard-linking will not work.
  • Torrent only has .rar files.

What seems to happen is that the torrent is downloaded, then moved, then extracted (which may take an hour if we’re talking 200gb of BluRays). Then about a minute after the move is performed and the extract has started the ā€œCheck For Finished Downloadā€ runs, finds the partially extracted files and copies them over to /tank/one. Oops.

I haven’t figured out a way to solve this yet and I’m hoping that I am missing something obvious.

My one idea on how to solve this is to remove the extractor plugin from Deluge, leaving the move-to setting as is, then installing the script plugin and write a script that extracts the contents somewhere else on the same drive (/tank/dl/temp), when extract is complete, move the files to the ā€œmove-toā€ directory, which should cause Sonarr to pick them up, right?

I assume Sonarr will read the ā€œmove-toā€ folder from Deluge, find nothing but .rar, find nothing, find nothing, ah, now there’s stuff, copy + DELETE (don’t want it to waste space) file, watch torrent until seed limit is hit, delete torrent + DATA!!! - is this the correct assumption?

General question 1
Is there any way to change the sorting of the series screen to NOT ignore articles? I know my show is named ā€œThe Kill Pointā€, I do not want it sorted under K… If not, could you point me in the general direction of where in the code is the best place to change this? Can I just change the SortTitle accessor on Series to return the normal title, or would this break something else?

General question 2
There is no HDDVD category? Granted, they’re unusual and not used anymore, but there are releases (BSG for example) that uses it. I put them as BluRay, but the true media information is lost…

EDIT:
General question 3
The Refresh Series task (I think) that goes off every 12 hours, any easy way to reschedule it?
Due to how my storage is structured I’ve got a few essentially full disk arrays that are spun down for thermal reasons and very rarely accessed, maybe a few times per month. Since they’re archived I’m actually considering mounting them in read-only mode on the filesystem level and only do a ZFS scrub every week or so. So then a scan is REALLY useless…

P1 - the problem is deluge says the download is complete and ready for import, I suspect the same problem would happen with a script because there isn’t a script status (that I’m aware of). Offhand on not sure which path Sonarr uses for import from deluge.

Q1 - yeah its SortTitle, nothing else should rely on it.

Q2 - no, there isn’t a considerable enough difference to have one.

Q3 - if the series is completed it will only refresh every 30 days, offhand I’m not sure if the disk is rescanned every time, bit I suspect it is. There is no way to change the schedule and we have no plans to introduce an option to do so.

Thanks!

P1:
With the script approach there’ll be nothing to import (bunch of rar files) until the .mkv files are moved into the dir by the extract script after they’ve been extracted elsewhere. File moves on the same filesystem are more or less instant, so less chance something breaks… I think.

Q1:
Ok!

Q2:
You have a point :smile:

Q3:
Hmmm… what are the critera for ā€œcompletedā€? All episodes minus specials present? Does monitored affect this behavior?

Would anything break badly if I hacked in a few exceptions to which directories are scanned, or the timing of it?

Marked as ended on TheTVDB (and subsequently in Sonarr).

Depends on how much of a hatchet job was done, the refresh task pulls new data from our TVDB proxy, if you stopped that for an extended period of time, data would be off in Sonarr until it refreshed.

For anyone else wanting to change the sort behaviour, the following seems to work for me… although I’m sure it’ll turn out to be a terrible idea in the end :smiley:

  1. Shut down Sonarr
  2. Open nzbdrone.db using sqlite3
  3. Run the following SQL:

UPDATE Series SET SortTitle = lower(Title);

CREATE TRIGGER update_sort_title AFTER UPDATE ON Series
BEGIN
UPDATE Series SET SortTitle = lower(new.Title) WHERE Title = new.Title;
END;

CREATE TRIGGER update_sort_title_insert AFTER INSERT ON Series
BEGIN
UPDATE Series SET SortTitle = lower(new.Title) WHERE Title = new.Title;
END;

4 .exit
5. Start Sonarr

Use at your own risk, it’ll probably break something sooner or later.

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