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.
clintonhall
Posts: 449
Joined: 15 Dec 2012, 01:52
Location: Australia
Contact:

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 31 Oct 2015, 21:19

@kjKmcQN3

1. Yes, These only come into play with Transcoder Enabled
2. Yes, Subs are only embedded when Transcoding.
3. nzbToSickBeard is called before SickRage processes, so this would happen first. Ultimately if both are enabled, you have more chance of getting the subs as both scripts do this slightly differently (To Be honest I would expect SickRage to be more reliable here....) and as far as I know there should not be any compatibility issue.

I agree these scripts have become pretty "bloated" with features. In NZBGet it would be possible to break out each feature to a separate script... but for the other downloaders these scripts support, the script needs to either "daisy-chain" scripts, or it needs to be all-in-one.

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

Re: nzbToMedia for NZBGet V11+

Post by kjKmcQN3 » 01 Nov 2015, 09:28

Thank you much clinton. Really looking forward to using the script. Greatly appreciate your help in creating and supporting these scripts.

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

Re: nzbToMedia for NZBGet V11+

Post by kjKmcQN3 » 02 Nov 2015, 06:57

I have another question for you clinton!

First the good news: nzbToSickbeard worked like a charm! However, I ran into the nzbToSickBeard: env: python2: No such file or directory issue on my first attempt at post-processing. I've encountered this before and know how to fix it but don't know why it crops up. Changing the first line of the .py file (in this case nzbToSickBeard.py and nzbToMedia.py for good effect) from "!/usr/bin/env python2" to "!/usr/bin/env python" does the trick.

I've been reading up on this on the nzbToMedia GitHub page and other forums and it looks like sym-linking is the solution to this. I don't understand this very well so would like to tread with caution and thought I'd run it by you. This post is super helpful and I thought I'd follow it. Here are my Python query results:
which python = /usr/bin/python
which python2.7 = /usr/bin/python2.7

Does this mean that I need to type "ln -sf /usr/bin/python2.7 /usr/bin/python2" into Terminal?

I am running Mac OS X El Capitan. Many, many thanks!

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

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 02 Nov 2015, 10:01

yes, that is the command to do symlink, but there is some discussion that this doesn't work in El Capitan as they have introduced some user restrictions etc....
try it.. can't do any harm.

naxiand
Posts: 2
Joined: 09 Jan 2016, 15:58

Re: nzbToMedia for NZBGet V11+

Post by naxiand » 09 Jan 2016, 18:44

I have been advised that this topic would be more appropriate, so I will appreciate greatly any help to this http://forum.nzbget.net/viewtopic.php?f ... 500#p15500

naxiand
Posts: 2
Joined: 09 Jan 2016, 15:58

Re: nzbToMedia for NZBGet V11+

Post by naxiand » 09 Jan 2016, 23:05

I have a NEW log file with error. running win10 64, sickrage, nzbget. on the categories for TV i have choosen nzbtosickbeard.py and have done the configuration for it as should.
any idea what is wrong?
nzbget_issue2.PNG
to answer to my question if someone has the same issue pinwin32 64bit version was missing now it works as it should http://sourceforge.net/projects/pywin32 ... ild%20219/

a lot of parameters these new plugins. I have been used to the simplicity of the old sabtosickbeard. I will come back with new questions :mrgreen:

polar
Posts: 1
Joined: 21 Jan 2016, 16:05

Re: nzbToMedia for NZBGet V11+

Post by polar » 21 Jan 2016, 17:39

(FYI: Also reported this at https://github.com/clinton-hall/nzbToMedia/issues/919)

Hello Clinton (and all others ...). I'm taking the plunge and moving away from SABnzbd+ and SickRageTV to NZBget and SickRage. Did my share of reading today and am having some issues.

UPDATE 2 : Clinton: typo !! TORRENT_CHMOD_DIRECTORY = int(CFG["Torrent"] ******>>>["chmodDirecotry"]<<<*********** , 8) . I edited the file \nzbToMedia\core\__init__.py and this error is cleared :)

UPDATE : the error below the ----- line is due to running incorrect versions of both python 2.7.11 and pywin32. In my case I needed to make sure they were both for 64 bit platform. Fixed this, and now I have a different error :) (keep smiling ...)

See the nzbget log file attached: (same download which I know now is a corrupt download, but never the less, just for testing purposes). Notice the line :

INFO nzbToSickBeard: TypeError: int() can't convert non-string with explicit base

The same happens when running a command line like this:

C:\>C:\Python27\python.exe C:\nzbToMedia-GIT\nzbToMedia\TorrentToMedia.py "C:\Video\link_w_torrent_download\SickRagetv_"
"TV-show-name-xxx-SxxExx" "SickRagetv_" "6D11233407D4BCCDB29B738C49277AAAD4149772"
[19:58:25] [INFO]::MAIN: Loading config from [C:\nzbToMedia-GIT\nzbToMedia\autoProcessMedia.cfg]
[19:58:25] [INFO]::MAIN: Checking database structure...
[19:58:25] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[19:58:25] [DEBUG]::MAIN: InitialSchema upgrade not required
[19:58:25] [DEBUG]::MAIN: Checking if we can use git commands: "C:\Program Files (x86)\Git\bin\git.exe" version
[19:58:25] [DEBUG]::MAIN: Executing "C:\Program Files (x86)\Git\bin\git.exe" version with your shell in C:\nzbToMedia-GI
T\nzbToMedia
[19:58:25] [DEBUG]::MAIN: "C:\Program Files (x86)\Git\bin\git.exe" version : returned successful
[19:58:25] [DEBUG]::MAIN: Using: "C:\Program Files (x86)\Git\bin\git.exe"
[19:58:25] [DEBUG]::MAIN: Executing "C:\Program Files (x86)\Git\bin\git.exe" symbolic-ref -q HEAD with your shell in C:\
nzbToMedia-GIT\nzbToMedia
[19:58:25] [DEBUG]::MAIN: "C:\Program Files (x86)\Git\bin\git.exe" symbolic-ref -q HEAD : returned successful
[19:58:25] [INFO]::MAIN: Checking if git needs an update
[19:58:25] [DEBUG]::MAIN: Executing "C:\Program Files (x86)\Git\bin\git.exe" rev-parse HEAD with your shell in C:\nzbToM
edia-GIT\nzbToMedia
[19:58:25] [DEBUG]::MAIN: "C:\Program Files (x86)\Git\bin\git.exe" rev-parse HEAD : returned successful
[19:58:25] [DEBUG]::MAIN: Executing "C:\Program Files (x86)\Git\bin\git.exe" fetch origin with your shell in C:\nzbToMed
ia-GIT\nzbToMedia
[19:58:27] [DEBUG]::MAIN: "C:\Program Files (x86)\Git\bin\git.exe" fetch origin : returned successful
[19:58:27] [DEBUG]::MAIN: Executing "C:\Program Files (x86)\Git\bin\git.exe" rev-parse --verify --quiet "@{upstream}" wi
th your shell in C:\nzbToMedia-GIT\nzbToMedia
[19:58:27] [DEBUG]::MAIN: "C:\Program Files (x86)\Git\bin\git.exe" rev-parse --verify --quiet "@{upstream}" : returned s
uccessful
[19:58:27] [DEBUG]::MAIN: Executing "C:\Program Files (x86)\Git\bin\git.exe" rev-list --left-right "@{upstream}"...HEAD
with your shell in C:\nzbToMedia-GIT\nzbToMedia
[19:58:27] [DEBUG]::MAIN: "C:\Program Files (x86)\Git\bin\git.exe" rev-list --left-right "@{upstream}"...HEAD : returned
successful
[19:58:27] [DEBUG]::MAIN: cur_commit = 3e4861e87c543a4d2debd8997feb16bda3ef5339 % (newest_commit)= 3e4861e87c543a4d2debd
8997feb16bda3ef5339, num_commits_behind = 0, num_commits_ahead = 0
[19:58:27] [INFO]::MAIN: No update needed
[19:58:27] [INFO]::MAIN: nzbToMedia Version:3e4861e87c543a4d2debd8997feb16bda3ef5339 Branch:master (Windows 7)
Traceback (most recent call last):
File "C:\nzbToMedia-GIT\nzbToMedia\TorrentToMedia.py", line 345, in <module>
exit(main(sys.argv))
File "C:\nzbToMedia-GIT\nzbToMedia\TorrentToMedia.py", line 260, in main
core.initialize()
File "C:\nzbToMedia-GIT\nzbToMedia\core\__init__.py", line 348, in initialize
TORRENT_CHMOD_DIRECTORY = int(CFG["Torrent"]["chmodDirecotry"], 8)
TypeError: int() can't convert non-string with explicit base

Any suggestions please?


---------------------------------------------------------------------------------------------------------------

The request is send from SR to NZBget. Download starts and aborts with error:

Post-process-script nzbToSickBeard.py for "TV-show-name-xxx-SxxExx" failed (terminated with unknown status)

The log tells me "WARNING Skipping par-check for"TV-show-name-xxx-SxxExx" due to health 89.2% below critical 89.5%, so I can assume this is a bad download"

Next the log shows this (never seen this before):

Thu Jan 21 19:02:29 2016 INFO Executing post-process-script nzbToSickBeard.py for"TV-show-name-xxx-SxxExx
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: Traceback (most recent call last):
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: File "C:\nzbToMedia-GIT\nzbToMedia\nzbToSickBeard.py", line 252, in <module>
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: result = nzbToMedia.main(sys.argv, section)
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: File "C:\nzbToMedia-GIT\nzbToMedia\nzbToMedia.py", line 626, in main
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: core.initialize(section)
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: File "C:\nzbToMedia-GIT\nzbToMedia\core\__init__.py", line 234, in initialize
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: MYAPP = RunningProcess()
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: File "C:\nzbToMedia-GIT\nzbToMedia\core\nzbToMediaUtil.py", line 1140, in __init__
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: self.process = WindowsProcess()
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: File "C:\nzbToMedia-GIT\nzbToMedia\core\nzbToMediaUtil.py", line 1155, in __init__
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: from win32event import CreateMutex
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: ImportError: DLL load failed: %1 is not a valid Win32 application.
Thu Jan 21 19:02:31 2016 INFO nzbToSickBeard: Exception AttributeError: "WindowsProcess instance has no attribute 'mutex'" in <bound method WindowsProcess.__del__ of <core.nzbToMediaUtil.WindowsProcess instance at 0x03481A58>> ignored
Thu Jan 21 19:02:31 2016 ERROR Post-process-script nzbToSickBeard.py for "TV-show-name-xxx-SxxExx failed (terminated with unknown status)
Thu Jan 21 19:02:31 2016 INFO Collection "TV-show-name-xxx-SxxExx added to history

Any idea what is going on? Running on Win7, Python 2.7.11, NZBget 16.4, installed pywin32-2.7, don't know how to check version of nzbTo_XX, latest I used is Version:6552007fc95d841c95d65f7c9a553b593aed1f8c Branch:nightly (Windows 7), but did a new pull just to make sure just now.
Attachments
nzbget-2016-01-21.log
(35.03 KiB) Downloaded 222 times

juliem
Posts: 6
Joined: 27 Feb 2016, 07:42

Re: nzbToMedia for NZBGet V11+

Post by juliem » 27 Feb 2016, 07:48

Hi

I am hoping someone can help me, I am in the process of getting NZBToMedia setup, and I got it working once last night, but since then I am getting the following messages:

Code: Select all

error Sat Feb 27 2016 06:49:03 Post-process-script nzbToMedia/nzbToSickBeard.py for XXX failed (terminated with unknown status) 
info Sat Feb 27 2016 06:49:03 nzbToSickBeard: Exception TypeError: "'NoneType' object is not callable" in <bound method PosixProcess.__del__ of <core.nzbToMediaUtil.PosixProcess instance at 0x75ebd2b0>> ignored 
info Sat Feb 27 2016 06:49:03 nzbToSickBeard: First error at line 113. 
info Sat Feb 27 2016 06:49:03 nzbToSickBeard: configobj.configobj.ConfigObjError: Parsing failed with several errors. 
info Sat Feb 27 2016 06:49:03 nzbToSickBeard: raise error 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: File "/opt/nzbget/scripts/nzbToMedia/libs/configobj/configobj.py", line 1317, in _load 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: self._load(infile, configspec) 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: File "/opt/nzbget/scripts/nzbToMedia/libs/configobj/configobj.py", line 1228, in __init__ 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: super(configobj.ConfigObj, self).__init__(*args, **kw) 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: File "/opt/nzbget/scripts/nzbToMedia/core/nzbToMediaConfig.py", line 86, in __init__ 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: CFG_NEW = config() 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: File "/opt/nzbget/scripts/nzbToMedia/core/nzbToMediaConfig.py", line 244, in addnzbget 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: CFG = config.addnzbget() 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: File "/opt/nzbget/scripts/nzbToMedia/core/__init__.py", line 277, in initialize 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: core.initialize(section) 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: File "/opt/nzbget/scripts/nzbToMedia/nzbToMedia.py", line 626, in main 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: result = nzbToMedia.main(sys.argv, section) 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: File "/opt/nzbget/scripts/nzbToMedia/nzbToSickBeard.py", line 252, in <module> 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: Traceback (most recent call last): 
info Sat Feb 27 2016 06:49:02 nzbToSickBeard: [06:49:02] [ERROR]::MAIN: Unable to migrate config file /opt/nzbget/scripts/nzbToMedia/autoProcessMedia.cfg, exiting ... 

I am sure it is simple but not sure what, I am using the sickbeard script and sickrage as the client if that helps.

appreciate any help

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

Re: nzbToMedia for NZBGet V11+

Post by kjKmcQN3 » 11 Mar 2016, 12:24

I use the excellent nzbToSickBeard all the time. I just realized that while I have the Auto update nzbToMedia option enabled, there have been issues with it. Here is what the log says:

INFO Fri Mar 11 2016 16:39:29 nzbToSickBeard: [16:39:29] [INFO]::MAIN: nzbToMedia Version:1cd64053b0da1d351bb6af392e1ebb904c6b6ce2 Branch:master (Darwin 15.3.0)
INFO Fri Mar 11 2016 16:39:29 nzbToSickBeard: [16:39:29] [ERROR]::MAIN: Update wasn't successful, not restarting. Check your log for more information.
INFO Fri Mar 11 2016 16:38:58 nzbToSickBeard: [16:38:58] [INFO]::MAIN: Auto-Updating nzbToMedia, Please wait ...
INFO Fri Mar 11 2016 16:38:58 nzbToSickBeard: [16:38:58] [INFO]::MAIN: There is a newer version available (you're 31 commits behind)

I then tried to manually update via git pull but got the following error

error: Your local changes to the following files would be overwritten by merge:
nzbToMedia.py
nzbToSickBeard.py
Please, commit your changes or stash them before you can merge.

Any ideas what I need to do? Thanks!

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

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 18 Mar 2016, 22:25

It appears you have manually edited nzbToMedia.py and nzbToSickBEard.py
to resolve this you need to either

Code: Select all

git stash
git pull
git stash apply
if you did not make any changes to these files just try

Code: Select all

git reset --hard
git pull

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests