It is currently Fri Nov 22, 2019 1:53 pm
All times are UTC + 8 hours

Error in using script nzbToHeadPhones.py

Headphones is a SABnzbd add-on that automates your music downloading. It's easy to setup and configure.
You can import all your favorite artists from iTunes, and keep an eye out for any new albums they might be releasing.

It can be configured to work with a few search providers, including NZBs.org and other Newznab servers. Just enter your account details and you're ready to go.

Moderators: JohnnyFive, clinton.hall

Error in using script nzbToHeadPhones.py

Postby dbenyakar » Thu Dec 25, 2014 4:24 pm

Hi
I replaced the nzbToMedia scripts I had before using the one in the following link: https://github.com/clinton-hall/nzbToMedia
Then I just modified the script autoProcessMedia.cfg in order to enter username/password when ever I needed to (for example CP), ports and ssl=1 where ever needed. I did not modify any other scripts.

Then I downloaded an album in Headphones and via SabNZBD. The folder got downloaded and it moved to the correct location in post processing.
But in SabNZBD I saw the following error:
Code: Select all
          [10:00:56] [INFO]::MAIN: Loading config from [/volume1/Download/Library/Scripts/autoProcessMedia.cfg]
[10:00:56] [INFO]::MAIN: Checking database structure...
[10:00:56] [INFO]::MAIN: Database upgrade required: Initial Schema
[10:00:57] [INFO]::MAIN: Checking if source needs an update
[10:00:58] [ERROR]::MAIN: Unknown current version number, don't know if we should update or not
[10:00:58] [INFO]::MAIN: nzbToMedia Version:10.8 Branch:master (Linux 3.12.20)
[10:00:58] [INFO]::MAIN: #########################################################
[10:00:58] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[10:00:58] [INFO]::MAIN: #########################################################
[10:00:58] [INFO]::MAIN: Script triggered from SABnzbd
[10:00:58] [ERROR]::MAIN: Unable to open URL
[10:00:59] [ERROR]::MAIN: Unable to locate a section with subsection:music enabled in your autoProcessMedia.cfg, exiting!
[10:00:59] [ERROR]::MAIN: A problem was reported in the /volume1/Download/Library/Scripts/nzbToHeadPhones.py script.


What does that mean?
Which URL it tries to open and it cannot?
dbenyakar
 
Posts: 96
Joined: Wed Feb 19, 2014 3:26 am

Re: Error in using script nzbToHeadPhones.py

Postby clinton.hall » Thu Dec 25, 2014 6:06 pm

I believe this was trying to open SAbnzbd Api to confirm the release Id... This only works if you set up the apikey in autoProcessMedia.cfg [Nzb] section.

To get the full URL details logged, in autoProcessMedia.cfg [General] set log_debug = 1

Finally, the actual issue is you don't have a "music" section enabled...

In autoProcessMedia.cfg [HeadPhones] make sure the section in double bracets "[[ xxx ]]" is changed to [[music]] and then the option enabled = 1
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 838
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Error in using script nzbToHeadPhones.py

Postby dbenyakar » Thu Dec 25, 2014 9:02 pm

The section in double bracets was never "[[ xxx ]]" but either [[music]] or [[tv]] or [[movie]] so I have touched that part. But now I modified the option enabled = 1 for these categories.
Do I need to restart SABNZBD for that? or restart anything?
dbenyakar
 
Posts: 96
Joined: Wed Feb 19, 2014 3:26 am

Re: Error in using script nzbToHeadPhones.py

Postby dbenyakar » Thu Dec 25, 2014 9:23 pm

I restarted SABNZBD. So now it finds the correct subsection but now it does not post process at all.
This is the error it shows:
Code: Select all
[15:10:37] [INFO]::MAIN: Loading config from [/volume1/Download/Library/Scripts/autoProcessMedia.cfg]
[15:10:37] [INFO]::MAIN: Checking database structure...
[15:10:37] [INFO]::MAIN: Checking if source needs an update
[15:10:38] [ERROR]::MAIN: Unknown current version number, don't know if we should update or not
[15:10:38] [INFO]::MAIN: nzbToMedia Version:10.8 Branch:master (Linux 3.12.20)
[15:10:38] [INFO]::MAIN: #########################################################
[15:10:38] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ##
[15:10:38] [INFO]::MAIN: #########################################################
[15:10:38] [INFO]::MAIN: Script triggered from SABnzbd
[15:10:38] [ERROR]::MAIN: Unable to open URL
[15:10:39] [INFO]::MAIN: Auto-detected SECTION:HeadPhones
[15:10:39] [INFO]::MAIN: Calling HeadPhones:music to post-process:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.nzb
[15:10:39] [ERROR]::HEADPHONES: Could not find a status for XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.nzb, is it in the wanted list ?
[15:10:39] [ERROR]::HEADPHONES: FAILED: Post-Processing has NOT started for XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.nzb in folder /volume1/Download/Library/Complete/Music/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. exiting!
[15:10:39] [ERROR]::MAIN: A problem was reported in the /volume1/Download/Library/Scripts/nzbToHeadPhones.py script.
HeadPhones: Failed to post-process - Returned log from HeadPhones was not as expected.!


what causing it to fail?
Do I need to modify anything in nzbToHeadPhones.py?
dbenyakar
 
Posts: 96
Joined: Wed Feb 19, 2014 3:26 am

Re: Error in using script nzbToHeadPhones.py

Postby clinton.hall » Fri Dec 26, 2014 4:50 am

The config all looks correct, but as the logs say, this album doesn't seemt to be listed in HeadPhones wanted list... Was this a manual download or was this triggered by HeadPhones?
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 838
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Error in using script nzbToHeadPhones.py

Postby dbenyakar » Fri Dec 26, 2014 7:39 am

triggered by Headphones.
I also checked in Headphones in the Wanted list and did not find the album there, which is odd.

But I restarted the NAS, tried to download other albums and now it seemed to successfully post process them as expected.
So Im happy now.

But is there a page that explains what each of the files does? for example, what does the NZBtoSickBeard.py do? it has all kind of settings that are commented but Im not sure whether to fill them with the correct entries.
dbenyakar
 
Posts: 96
Joined: Wed Feb 19, 2014 3:26 am

Re: Error in using script nzbToHeadPhones.py

Postby clinton.hall » Sat Dec 27, 2014 5:40 am

don't edit any of the .py files... those commented options form the webui to allow setting of options when using NZBGet.
For all other downloaders, you edit autoProcesMedia.cfg only

nzbToSickBeard is to be used for processing to SickBeard...

checkout https://github.com/clinton-hall/nzbToMedia/wiki for more info.
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
User avatar
clinton.hall
 
Posts: 838
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Return to Headphones

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 0 guests