Category associated script is never executed

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
DgtHorse
Newbie
Newbie
Posts: 7
Joined: September 30th, 2010, 11:25 am

Category associated script is never executed

Post by DgtHorse »

I have a category script for my Mp3's that contains the following in "NewsBin / Groups" field "Music, *.mp3.*" now this mathces properly but it never selects the Script i have selected unless i manually put the category to "Music". I hope you can understand the issue, if not, ill post a video :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Category associated script is never executed

Post by shypike »

On what do you hope to trigger? On newzbin categories or on newsgroup names?
DgtHorse
Newbie
Newbie
Posts: 7
Joined: September 30th, 2010, 11:25 am

Re: Category associated script is never executed

Post by DgtHorse »

On the newsgroup name
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Category associated script is never executed

Post by shypike »

Are you sure the group is actually listed in the NZB.
Open the NZB with a text editor (like notepad) and see if you can find the group.

BTW: you write "Music, *.mp3.*"
This means that it will match on the newzbin category "Music" and on any group containing ".mp3."
(with the dots included, so it will not match "alt.very.bad.music.mp3").
DgtHorse
Newbie
Newbie
Posts: 7
Joined: September 30th, 2010, 11:25 am

Re: Category associated script is never executed

Post by DgtHorse »

Yes, the group is actually in the NZB. Sabnzbd does actually automatically put it into the music category but the script associated with the category is never selected, i always need to manually select it. When selecting the group manually though, the script is associated with the nzb its only when performing the newsgroup matching that it correctly sets the category but not the script.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Category associated script is never executed

Post by shypike »

Well, it works fine when I test it.
Do you set the script in the category line?

You can do this test:
Wait until the queue is empty.
Pause SABnzbd.
On the Connections page set logging to "Debug".
Load a suitable NZB.
Go back to Connections and click "Show logging".
Open the file in Notepad and go to the end.

You'll see something like this:
2010-10-01 19:18:10,207::DEBUG::[misc:151] Convert group "alt.binaries.gougouland" to user-cat "music"
2010-10-01 19:18:10,207::DEBUG::[misc:78] Job gets options 3
2010-10-01 19:18:10,207::DEBUG::[misc:88] Job gets script Sample-PostProc.cmd
2010-10-01 19:18:10,209::DEBUG::[misc:98] Job gets priority 1
2010-10-01 19:18:10,210::INFO::[nzbqueue:92] Saving queue

What do you see?
DgtHorse
Newbie
Newbie
Posts: 7
Joined: September 30th, 2010, 11:25 am

Re: Category associated script is never executed

Post by DgtHorse »

This is what i see...

2010-10-03 17:35:33,441::INFO::[nzbstuff:396] File 114-gang_starr-above_the_clouds_(ft._inspectah_deck)-rec.mp3 added to queue
2010-10-03 17:35:33,444::DEBUG::[misc:149] Convert index site category "alt.binaries.sounds.mp3.complete_cd" to user-cat "music"
2010-10-03 17:35:33,473::INFO::[nzbqueue:92] Saving queue
2010-10-03 17:35:33,474::DEBUG::[__init__:649] Saving data for SABnzbd_nzo_fy9m4i in C:\Users\Ahmed\AppData\Local\sabnzbd\cache\SABnzbd_nzo_fy9m4i
2010-10-03 17:35:33,486::DEBUG::[__init__:649] Saving data for queue9.sab in C:\Users\Ahmed\AppData\Local\sabnzbd\cache\queue9.sab
2010-10-03 17:35:34,526::DEBUG::[nzbstuff:151] Finishing import on 114-gang_starr-above_the_clouds_(ft._inspectah_deck)-rec.mp3
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Category associated script is never executed

Post by shypike »

This is going to take a while.
I'm too busy right now.  I will follow this up though.
The logging looks different, but think I tested it on Alpha release 0.6.0.
DgtHorse
Newbie
Newbie
Posts: 7
Joined: September 30th, 2010, 11:25 am

Re: Category associated script is never executed

Post by DgtHorse »

Alright sure, thx for the help dude!
Looking forward to v6 :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Category associated script is never executed

Post by shypike »

I can find nothing wrong in 0.5.4 in this area, it must be something in your setup.

Can you email your sabnzbd.ini file to bugs at sabnzbd.org ?
Remember to remove all passwords from the file!
DgtHorse
Newbie
Newbie
Posts: 7
Joined: September 30th, 2010, 11:25 am

Re: Category associated script is never executed

Post by DgtHorse »

Done, just emailed the contents!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Category associated script is never executed

Post by shypike »

You used
"Music, *mp3*"
where you should have used:
Music, *mp3*
thesystem
Newbie
Newbie
Posts: 13
Joined: March 28th, 2008, 11:06 am

Re: Category associated script is never executed

Post by thesystem »

I'm having the same problem with version 0.5.4
This is in my logfile:
2010-10-13 01:20:52,144::INFO::[nzbstuff:396] File Genius.With.Dave.Gorman.S02E01.WS.PDTV.XviD-FTP.nzb added to queue
2010-10-13 01:20:52,145::DEBUG::[misc:151] Convert group "alt.binaries.multimedia" to user-cat "tv shows"
2010-10-13 01:20:52,148::INFO::[nzbqueue:92] Saving queue
2010-10-13 01:20:52,148::DEBUG::[__init__:649] Saving data for SABnzbd_nzo_dmrih9 in C:\Users\server.VRIES\AppData\Local\sabnzbd\cache\SABnzbd_nzo_dmrih9
This is the part about categories in my sabnzbd.ini file:
[categories]
[[tv shows]]
priority = -100
pp = ""
name = tv shows
script = cleanup.bat
newzbin = alt.binaries.multimedia
dir = d:\downloaded\TV Shows
If it's neccesary I can mail the entire file.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Category associated script is never executed

Post by shypike »

thesystem wrote: If it's neccesary I can mail the entire file.
Please do, but don't forget to remove the passwords.
Can you add the NZB that fails too?
DgtHorse
Newbie
Newbie
Posts: 7
Joined: September 30th, 2010, 11:25 am

Re: Category associated script is never executed

Post by DgtHorse »

shypike wrote: You used
"Music, *mp3*"
where you should have used:
Music, *mp3*
I just made those changes and it never seems to pick it up the script, it always categorizes properly but without the script...

Im stumped!
Post Reply