nzbToMedia for NZBGet V11+

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
Apulo
Posts: 1
Joined: 28 Aug 2016, 02:50

Re: nzbToMedia for NZBGet V11+

Post by Apulo » 28 Aug 2016, 02:52

I'm having a problem with the latest nzbtomedia scripts on a QNAP nas.

I get an error that the cookielib module does not exist.

I can however ssh to the nas and run python from the command line and import the cookielib module.

Any help would be appreciated.

EDIT: Disregard, I had to create a symlink to the right version of python.

hbs
Posts: 1
Joined: 16 Feb 2015, 20:09

Re: nzbToMedia for NZBGet V11+

Post by hbs » 24 Sep 2016, 16:05

Hi ClintonHall,

First I would like to thank you for the nzbToMedia Script. It is really great. I have been using it for over 2 years.

I have a suggestion: since LazyLibrarian is being actively developed again: https://github.com/DobyTang/LazyLibrarian I wonder if would be much of a hassle to add support to LazyLibrarian into nzbToMedia?

I understand that LazyLibrarian is based on Headphones that it is already supported.

What do you guys think?

Thanks

clintonhall
Posts: 449
Joined: 15 Dec 2012, 01:52
Location: Australia
Contact:

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 02 Oct 2016, 22:45

LazyLibriarian support has been requested, I just haven't had any time to look at this... In fact I have been offline for the last few months...

I'll try and look into this again. Best thing is to monitor this on nzbToMedia's github issues.

c_cs
Posts: 2
Joined: 07 Feb 2017, 09:38

Re: nzbToMedia for NZBGet V11+

Post by c_cs » 07 Feb 2017, 10:49

Hi,
I am trying to automate nzbget to Sonarr, but keep getting the same errors during post-processing.
I believe all is configured correctly and I am running into some other issues.
The machine is a Synology DS415+, running nzbget 18 beta (but I had the same issue on nzbget 17):

Any ideas - thanks,
Chris

Sun Feb 05 2017 21:14:33 INFO Collection TVSHOW added to queue
Sun Feb 05 2017 21:14:34 INFO Successfully downloaded TVSHOW/lahflhalflajfljaldsjlajl.par2
...
Sun Feb 05 2017 21:26:59 INFO Successfully downloaded TVSHOW/lahflhalflajfljaldsjlajl.part36.rar
Sun Feb 05 2017 21:26:59 INFO Collection TVSHOW completely downloaded
Sun Feb 05 2017 21:26:59 INFO Queueing TVSHOW for post-processing
Sun Feb 05 2017 21:26:59 INFO Checking renamed files for TVSHOW
Sun Feb 05 2017 21:26:59 INFO Loaded par2-file /volume1/download/intermediate/TVSHOW.#1931/lahflhalflajfljaldsjlajl.par2 for par-rename
Sun Feb 05 2017 21:26:59 INFO No renamed files found for TVSHOW
Sun Feb 05 2017 21:26:59 INFO Checking renamed archive files for TVSHOW
Sun Feb 05 2017 21:26:59 INFO No renamed archive files found for TVSHOW
Sun Feb 05 2017 21:26:59 INFO Unpacking TVSHOW
Sun Feb 05 2017 21:26:59 INFO Unrar: UNRAR 5.21 freeware Copyright (c) 1993-2015 Alexander Roshal
Sun Feb 05 2017 21:26:59 INFO Unrar: Extracting from lahflhalflajfljaldsjlajl.part01.rar
Sun Feb 05 2017 21:26:59 INFO Unrar: Extracting lahflhalflajfljaldsjlajl.mkv
...
Sun Feb 05 2017 21:27:23 INFO Unrar: Extracting from lahflhalflajfljaldsjlajl.part36.rar
Sun Feb 05 2017 21:27:24 INFO Unrar: All OK
Sun Feb 05 2017 21:27:24 INFO Deleting archive files
Sun Feb 05 2017 21:27:24 INFO Deleting file lahflhalflajfljaldsjlajl.part01.rar
....
Sun Feb 05 2017 21:27:24 INFO Deleting file lahflhalflajfljaldsjlajl.part36.rar
Sun Feb 05 2017 21:27:24 INFO Unpack for TVSHOW successful
Sun Feb 05 2017 21:27:25 INFO Checking renamed files for TVSHOW
Sun Feb 05 2017 21:27:25 INFO No renamed files found for TVSHOW
Sun Feb 05 2017 21:27:25 INFO Cleaning up TVSHOW
Sun Feb 05 2017 21:27:25 INFO Deleting file lahflhalflajfljaldsjlajl.par2
Sun Feb 05 2017 21:27:25 INFO Cleanup for TVSHOW successful
Sun Feb 05 2017 21:27:25 INFO Moving completed files for TVSHOW
Sun Feb 05 2017 21:27:25 INFO Move for TVSHOW successful
Sun Feb 05 2017 21:27:26 INFO Executing post-process-script nzbToMedia/nzbToNzbDrone.py for TVSHOW
Sun Feb 05 2017 21:27:30 INFO nzbToNzbDrone: /usr/local/lib/python2.7/site-packages/cffi/model.py:526: UserWarning: 'point_conversion_form_t' has no values explicitly defined; next version will refuse to guess which integer type it is meant to be (unsigned/signed, int/long)
Sun Feb 05 2017 21:27:30 INFO nzbToNzbDrone: % self._get_c_name())
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: [21:27:32] [ERROR]::MAIN: Unable to migrate config file /usr/local/nzbget/scripts/nzbToMedia/autoProcessMedia.cfg, exiting ...
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: Traceback (most recent call last):
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: File "/usr/local/nzbget/scripts/nzbToMedia/nzbToNzbDrone.py", line 244, in <module>
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: result = nzbToMedia.main(sys.argv, section)
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: File "/usr/local/nzbget/scripts/nzbToMedia/nzbToMedia.py", line 649, in main
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: core.initialize(section)
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: File "/usr/local/nzbget/scripts/nzbToMedia/core/__init__.py", line 292, in initialize
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: CFG = config.addnzbget()
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: File "/usr/local/nzbget/scripts/nzbToMedia/core/nzbToMediaConfig.py", line 253, in addnzbget
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: CFG_NEW = config()
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: File "/usr/local/nzbget/scripts/nzbToMedia/core/nzbToMediaConfig.py", line 94, in __init__
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: super(configobj.ConfigObj, self).__init__(*args, **kw)
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: File "/usr/local/nzbget/scripts/nzbToMedia/libs/configobj/configobj.py", line 1229, in __init__
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: self._load(infile, configspec)
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: File "/usr/local/nzbget/scripts/nzbToMedia/libs/configobj/configobj.py", line 1318, in _load
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: raise error
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: configobj.configobj.ConfigObjError: Parsing failed with several errors.
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: First error at line 119.
Sun Feb 05 2017 21:27:32 INFO nzbToNzbDrone: Exception TypeError: "'NoneType' object is not callable" in <bound method PosixProcess.__del__ of <core.nzbToMediaUtil.PosixProcess object at 0x7f67a365d4d0>> ignored
Sun Feb 05 2017 21:27:32 ERROR Post-process-script nzbToMedia/nzbToNzbDrone.py for TVSHOW failed (terminated with unknown status)
Sun Feb 05 2017 21:27:32 INFO Collection TVSHOW added to history

kloaknet
Posts: 309
Joined: 23 Jul 2014, 08:52

Re: nzbToMedia for NZBGet V11+

Post by kloaknet » 07 Feb 2017, 14:52

looks to be an issue in the script, however, why not rely on the file handling of Sonarr itself? Sonarr pushes an NZB to NZBGet, Sonarr monitors NZBGet via API, figures out when download is ready, and Sonarr moves it to the set folder in the Sonarr settings per show? Sonarr is set up to do this after installing en adding NZBGet as download client. Maybe Sonarr replaced it already?

If you want to use the script, maybe turn in Sonarr the option Completed downloading handling to off (under settings download client)?

c_cs
Posts: 2
Joined: 07 Feb 2017, 09:38

Re: nzbToMedia for NZBGet V11+

Post by c_cs » 07 Feb 2017, 15:41

Hi,

good point - however, Sonarr is struggling with access rights and claims it does not have access to the downloads folder...
By having NZBGet do this, I have better control about access rights.

Thanks,
Chris

kloaknet
Posts: 309
Joined: 23 Jul 2014, 08:52

Re: nzbToMedia for NZBGet V11+

Post by kloaknet » 08 Feb 2017, 15:41

Regarding Sonarr, for synology you have to set some rights properly, its a common issue. Maybe this helps: https://forums.sonarr.tv/t/sonaar-not-m ... r/13519/15 Otherwise search a bit on the Sonarr pages, and if nothing is found open a topic there, because I think it is just a very simple trick that the sonarr devs like markus101 will help you solve within no time.

Looking at the errors by the script btw, I think that has access issues too, but clintonhall can best help you with that.

clintonhall
Posts: 449
Joined: 15 Dec 2012, 01:52
Location: Australia
Contact:

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 09 Feb 2017, 11:33

ok, not sure how it got into this state, but I am guessing this is permissions related.

first, delete /usr/local/nzbget/scripts/nzbToMedia/autoProcessMedia.cfg

now, the nzbToMedia script needs to have been cloned by the same user:group that runs nzbget. if it was not cloned that way, delete /usr/local/nzbget/scripts/nzbToMedia and re-clone it as that user:group.

Ensure you have the appropriate settings for the script set in nzbget web ui and try running the script again.

roioj
Posts: 2
Joined: 16 Mar 2017, 11:55

Re: nzbToMedia for NZBGet V11+

Post by roioj » 16 Mar 2017, 12:23

Hello,
I need some help to understand how this script works and how to set this up for couchpotato.
I use couchpotato with both NZBget and transmission and I want to use this script with both downloaders.
I run TorrentToMedia.py from transmission and nzbToCouchPotato.py from NZBget.

I have a folder named Downloads and seperate folders NZB, torrents and movies inside that.
My torrents are download in /Downloads/torrents (and the incomplete in /Downloads/torrents/incomplete)
and my NZBs in /Downloads/NZB
and after post processing my movies should be in /Downloads/movies

In CPS settings:
My category for NZBget is called "cinema" so my files are downloaded in /Downloads/NZB/completed/cinema
The download directory for torrents sent from couchpotato is /Downloads/torrents/CPS/ (Is this the right to approach to categorise these files as CPS?)
I have enabled renamer and set Run Every to 0 so it won't be run periodically and selected:
"Rename from": /Downloads/NZB/completed/cinema/
and "Rename to": /Downloads/movies/

What should be my settings in autoProcessMedia.cfg for couchpotato and transmission?
I have added a category named [[CPS]] in [CouchPotato] for my torrents.
I cannot understand what settings I should add in [Torrent] section and especially these:
outputDirectory (Is this /Downloads/torrents or another folder for post processing like /Downloads/torrents/processing?)
default_downloadDirectory (Is this /Downloads/torrents?)
categories (should I add the CPS category here or not?)

clintonhall
Posts: 449
Joined: 15 Dec 2012, 01:52
Location: Australia
Contact:

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 17 Mar 2017, 11:43

outputDirectory = /Downloads/torrents/processing
default_downloadDirectory =/Downloads/torrents
categories = CPS (you can add any other category e.g 'series' or 'TV' etc.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests