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.
roioj
Posts: 2
Joined: 16 Mar 2017, 11:55

Re: nzbToMedia for NZBGet V11+

Post by roioj » 18 Mar 2017, 14:54

clintonhall wrote:outputDirectory = /Downloads/torrents/processing
default_downloadDirectory =/Downloads/torrents
categories = CPS (you can add any other category e.g 'series' or 'TV' etc.
Thank you
What's the purpose of categories setup in [Torrent] section. It worked with and without CPS in categories. Both times I saw this in the log:
::MAIN: Auto-detected SECTION:CouchPotato

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

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 19 Mar 2017, 10:03

The categories allows the script to determine missing infrmation depending on what info is passed byt eh downloader etc.
In other words, in some set-ups it helps make it work... but it isn't needed in every setup.

alegend
Posts: 7
Joined: 22 Mar 2017, 10:36

Re: nzbToMedia for NZBGet V11+

Post by alegend » 22 Mar 2017, 10:38

Can anyone tell me how can I automatically delete Series folder after post processing ?
Folder always is in temp dir empty ....?!?!

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

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 22 Mar 2017, 11:08

Edit autoProcessMedia.cfg and set
[General]
force_clean = 1

alegend
Posts: 7
Joined: 22 Mar 2017, 10:36

Re: nzbToMedia for NZBGet V11+

Post by alegend » 22 Mar 2017, 14:33

clintonhall wrote:Edit autoProcessMedia.cfg and set
[General]
force_clean = 1
i did this but :)
lol
when I set it to 1 my file never gets moved to the folder ._) it gets deleted ?!
I have option MOVE in NZBGET active - maybe this is reason?

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

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 23 Mar 2017, 12:10

Can you show a log extract from a postprocess so i can see what is going on?

TTT
Posts: 9
Joined: 08 Aug 2014, 18:16

Re: nzbToMedia for NZBGet V11+

Post by TTT » 10 Apr 2017, 11:40

Hi clinton,

Since sonarr (stable) updated a few days ago, i've found that the source dir that nzbToNzbdrone passes to sonarr is not being removed after import and it still contains the actual full video file.

I removed nzbToNzbdrone from my NZBGet post processing for the TV category and the dir is removed as normal. Have you noticed this?

For info I have completed downloading handling enabled in Sonarr and I've tried adding "force_clean = 1" to the autoProcessMedia.cfg file but it didn't seem to make any difference.

Any help would be appreciated.

Thanks
TTT

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

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 11 Apr 2017, 09:52

I don't currently run Sonarr so I have not observed this.
Can you show the logs from nzbToMedia?

TTT
Posts: 9
Joined: 08 Aug 2014, 18:16

Re: nzbToMedia for NZBGet V11+

Post by TTT » 11 Apr 2017, 15:32

There is nothing special in the nzbToMedia or Sonarr logs, I have a feeling it's the "DownloadedEpisodeScan" that has changed to just copy and leave the source files in place that is causing this. Since letting the Sonarr CDH (by disabling nzbToMedia) handle the import cleans up the source dir properly.

Someone else has posted a similar thing on the sonarr forum since my post here, so they may come back with something there - https://forums.sonarr.tv/t/sonarr-is-co ... them/14352

Here is a sample debug log anyway.

Code: Select all

2017-04-11 16:21:56 INFO    ::MAIN: Checking database structure...
2017-04-11 16:21:56 DEBUG   ::MAIN: Checking Initial Schema database upgrade
2017-04-11 16:21:56 DB      ::MAIN: nzbtomedia.db: SELECT 1 FROM sqlite_master WHERE name = ?; with args ('db_version',)
2017-04-11 16:21:56 DB      ::MAIN: nzbtomedia.db: SELECT db_version FROM db_version
2017-04-11 16:21:56 DEBUG   ::MAIN: InitialSchema upgrade not required
2017-04-11 16:21:56 DEBUG   ::MAIN: Checking if we can use git commands: "C:\Progra~2\Git\bin\git.exe" version
2017-04-11 16:21:56 DEBUG   ::MAIN: Executing "C:\Progra~2\Git\bin\git.exe" version with your shell in C:\Apps\nzbToMedia\nzbToMedia
2017-04-11 16:21:56 DEBUG   ::MAIN: "C:\Progra~2\Git\bin\git.exe" version : returned successful
2017-04-11 16:21:56 DEBUG   ::MAIN: Using: "C:\Progra~2\Git\bin\git.exe"
2017-04-11 16:21:56 DEBUG   ::MAIN: Executing "C:\Progra~2\Git\bin\git.exe" symbolic-ref -q HEAD with your shell in C:\Apps\nzbToMedia\nzbToMedia
2017-04-11 16:21:56 DEBUG   ::MAIN: "C:\Progra~2\Git\bin\git.exe" symbolic-ref -q HEAD : returned successful
2017-04-11 16:21:56 INFO    ::MAIN: Checking if git needs an update
2017-04-11 16:21:56 DEBUG   ::MAIN: Executing "C:\Progra~2\Git\bin\git.exe" rev-parse HEAD with your shell in C:\Apps\nzbToMedia\nzbToMedia
2017-04-11 16:21:56 DEBUG   ::MAIN: "C:\Progra~2\Git\bin\git.exe" rev-parse HEAD : returned successful
2017-04-11 16:21:56 DEBUG   ::MAIN: Executing "C:\Progra~2\Git\bin\git.exe" fetch origin with your shell in C:\Apps\nzbToMedia\nzbToMedia
2017-04-11 16:21:56 DEBUG   ::MAIN: "C:\Progra~2\Git\bin\git.exe" fetch origin : returned successful
2017-04-11 16:21:56 DEBUG   ::MAIN: Executing "C:\Progra~2\Git\bin\git.exe" rev-parse --verify --quiet "@{upstream}" with your shell in C:\Apps\nzbToMedia\nzbToMedia
2017-04-11 16:21:56 DEBUG   ::MAIN: "C:\Progra~2\Git\bin\git.exe" rev-parse --verify --quiet "@{upstream}" : returned successful
2017-04-11 16:21:56 DEBUG   ::MAIN: Executing "C:\Progra~2\Git\bin\git.exe" rev-list --left-right "@{upstream}"...HEAD with your shell in C:\Apps\nzbToMedia\nzbToMedia
2017-04-11 16:21:56 DEBUG   ::MAIN: "C:\Progra~2\Git\bin\git.exe" rev-list --left-right "@{upstream}"...HEAD : returned successful
2017-04-11 16:21:56 DEBUG   ::MAIN: cur_commit = 80c8ad58523ab99825c02f3855f9bd3dc9945d57 % (newest_commit)= 80c8ad58523ab99825c02f3855f9bd3dc9945d57, num_commits_behind = 0, num_commits_ahead = 0
2017-04-11 16:21:56 INFO    ::MAIN: No update needed
2017-04-11 16:21:56 INFO    ::MAIN: nzbToMedia Version:80c8ad58523ab99825c02f3855f9bd3dc9945d57 Branch:master (Windows 8)
2017-04-11 16:21:56 INFO    ::MAIN: #########################################################
2017-04-11 16:21:56 INFO    ::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
2017-04-11 16:21:56 INFO    ::MAIN: #########################################################
2017-04-11 16:21:56 DEBUG   ::MAIN: Options passed into nzbToMedia: ['C:\\Apps\\nzbToMedia\\nzbToMedia\\nzbToNzbDrone.py', '*']
2017-04-11 16:21:56 INFO    ::MAIN: Script triggered from NZBGet Version 16.3.
2017-04-11 16:21:56 DEBUG   ::MAIN: Adding NZB download info for directory Z:\Downloads2\NZBGet\complete\TV\Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA to database
2017-04-11 16:21:56 DB      ::MAIN: nzbtomedia.db: UPDATE downloads SET status = ?, client_agent = ?, last_update = ?, input_id = ?, input_hash = ?, input_name = ? WHERE input_directory = ? with args [0, u'nzbget', 736430, u'4711671ff6a7454e96d37aede8a3ed55', u'4711671ff6a7454e96d37aede8a3ed55', u'Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA', u'Z:\\Downloads2\\NZBGet\\complete\\TV\\Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA']
2017-04-11 16:21:56 INFO    ::MAIN: Auto-detected SECTION:NzbDrone
2017-04-11 16:21:56 INFO    ::MAIN: Calling NzbDrone:TV to post-process:Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA
2017-04-11 16:21:56 DEBUG   ::SERVER: Attempting to connect to server at http://localhost:8989
2017-04-11 16:21:56 DEBUG   ::SERVER: Server responded at http://localhost:8989
2017-04-11 16:21:56 INFO    ::MAIN: Attempting to verify TV fork
2017-04-11 16:21:57 INFO    ::MAIN: NzbDrone:TV fork set to default
2017-04-11 16:21:57 INFO    ::MAIN: FLATTEN: Flattening directory: Z:\Downloads2\NZBGet\complete\TV\Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA
2017-04-11 16:21:57 DEBUG   ::MAIN: Checking for empty folders in:Z:\Downloads2\NZBGet\complete\TV\Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA
2017-04-11 16:21:57 DEBUG   ::MAIN: calling command: C:\Apps\nzbToMedia\ffmpeg-20140729-git-4f91bb0-win64-static\bin\ffprobe.exe -v quiet -print_format json -show_format -show_streams -show_error C:\Apps\nzbToMedia\nzbToMedia\tests\test.mp4
2017-04-11 16:21:57 INFO    ::TRANSCODER: Checking [Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA.mkv] for corruption, please stand by ...
2017-04-11 16:21:57 DEBUG   ::MAIN: calling command: C:\Apps\nzbToMedia\ffmpeg-20140729-git-4f91bb0-win64-static\bin\ffprobe.exe -v quiet -print_format json -show_format -show_streams -show_error Z:\Downloads2\NZBGet\complete\TV\Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA\Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA.mkv
2017-04-11 16:21:57 INFO    ::TRANSCODER: SUCCESS: [Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA.mkv] has no corruption.
2017-04-11 16:21:57 POSTPROCESS::NZBDRONE: SUCCESS: The download succeeded, sending a post-process request
2017-04-11 16:21:57 DEBUG   ::NZBDRONE: path: Z:\Downloads2\NZBGet\complete\TV\Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA
2017-04-11 16:21:57 DEBUG   ::NZBDRONE: Opening URL: http://localhost:8989/api/command with data: {"path": "Z:\\Downloads2\\NZBGet\\complete\\TV\\Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA", "name": "DownloadedEpisodesScan", "downloadClientId": "4711671ff6a7454e96d37aede8a3ed55"}
2017-04-11 16:21:57 DEBUG   ::NZBDRONE: Scan started with id: 997038
2017-04-11 16:22:17 DEBUG   ::NZBDRONE: The Scan command return status: completed
2017-04-11 16:22:17 DEBUG   ::NZBDRONE: The Scan command has completed successfully. Renaming was successful.
2017-04-11 16:22:17 DB      ::DB: Updating status of our download Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA in the DB to 1
2017-04-11 16:22:17 DB      ::MAIN: nzbtomedia.db: UPDATE downloads SET status=?, last_update=? WHERE input_name=? with args [1, 736430, u'Scorpion.S03E21.1080p.WEB-DL.DD5.1.H.264-DRACULA']
2017-04-11 16:22:17 INFO    ::MAIN: The C:\Apps\nzbToMedia\nzbToMedia\nzbToNzbDrone.py script completed successfully.

kjKmcQN3
Posts: 75
Joined: 29 Aug 2015, 15:09

Re: nzbToMedia for NZBGet V11+

Post by kjKmcQN3 » 13 Jun 2017, 18:49

alegend wrote:
22 Mar 2017, 14:33
clintonhall wrote:Edit autoProcessMedia.cfg and set
[General]
force_clean = 1
i did this but :)
lol
when I set it to 1 my file never gets moved to the folder ._) it gets deleted ?!
I have option MOVE in NZBGET active - maybe this is reason?
Hi clinton,

I am having the same issue since a while. I tried setting force_clean = 1 in autoProcessMedia.cfg too and, like alegend, this resulted in my files getting deleted before getting moved and processed by SickRage.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests