RSS feed and Default script

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.
Post Reply
Eejit
Sr. Member
Sr. Member
Posts: 268
Joined: September 10th, 2008, 5:46 pm

RSS feed and Default script

Post by Eejit »

Version: 0.6.0 Final
OS: Windows 7 x64 Ultimate
Install-type: Windows Installer
Skin (if applicable): Default, Plush
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? yes

If I give SAB the URL on nzbmatrix of a movie, SAB grabs it, recognises that it's a movie, set's the catagories and runs the default script I have set up IMG2ISO.BAT. This works perfectly. This also worked perfectly with nzbmatrix bookmarks RSS feed in 0.5.6 but not now.

The RSS feed is grabbed, the movie is recognised as such and the movie catagorie set, but the default script. is set to none

Image

The movie is dowloaded but my post processing isn't carried out. The bookmarks are deleted once the download has been completed, which is awsome BTW 
Eejit - The name say's it all !!
Image
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: RSS feed and Default script

Post by shypike »

How are your feed-level attributes?
(as opposed to the filter-level)
Eejit
Sr. Member
Sr. Member
Posts: 268
Joined: September 10th, 2008, 5:46 pm

Re: RSS feed and Default script

Post by Eejit »

Ok, you've got me there. I haven't a clue what you mean  ???
All I have is a straight feed from my nzbmatrix bookmarkhttp://nzbmatrix.com/rss-bookmarks.php?userid=&apikey=

This is the only RSS feed I have set up with SAB and there are no filters. Accept everything.
The feed is grabbing the nzb, it's also setting the catagorie, but not the default script.
Eejit - The name say's it all !!
Image
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: RSS feed and Default script

Post by shypike »

For each feed you can set default attributes (PP, priority, script).
You can also set those attributes for each filter.
So, if you have set Script=None at the feed level, that will override the category's script.
Eejit
Sr. Member
Sr. Member
Posts: 268
Joined: September 10th, 2008, 5:46 pm

Re: RSS feed and Default script

Post by Eejit »

They are all set to Default. As mentioned, the catagorie is picked up, but the associated script isn't. I have the script set up under catagories
Image
This used to work with 0.5.6
Eejit - The name say's it all !!
Image
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: RSS feed and Default script

Post by shypike »

You're being a bit dim today  ;D
I'm talking about the Feed level settings:
Eejit
Sr. Member
Sr. Member
Posts: 268
Joined: September 10th, 2008, 5:46 pm

Re: RSS feed and Default script

Post by Eejit »

shypike wrote: You're being a bit dim today  ;D
I'm talking about the Feed level settings:
;D ;D ;D I wasn't. I was just trying to give as much info as possible and so confused matters  ;D

The Feed level settings are just like yours except  of course for the feed url itself. All set to default.
http://nzbmatrix.com/rss-bookmarks.php?userid=&apikey=
This has no catagorie tag at the end. It picks up everything that I've bookmarked.
If I bookmark a movie, SAB picks up the movie catagorie with the nzb.
As I have a script set for the movies catagorie, it should default to that ie IMG2ISO.bat and not 'none' as it does now.

Hope that's clearer  ;)
Eejit - The name say's it all !!
Image
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: RSS feed and Default script

Post by shypike »

The fruitcakes of nzbmatrix changed their RSS format again, for the worse.
The category is no longer picked up because it's now embedded in a "description" element (with a bunch of DIY html formatting).
Before it was a separate element called "category".

The category will be picked up when the NZB is actually fetched, but by then it's too late.
The default category will have done its work.
Also the "RequiresCat" filter doesn't work any more for nzbmatrix.

I'll see what I can do, but I'm getting very tired of these eternal nzbmatrix issues.

BTW: In 0.5.6 the category is no longer retrieved from the RSS feed either.
It just happens to work because of the lack of the "Default" category.
Eejit
Sr. Member
Sr. Member
Posts: 268
Joined: September 10th, 2008, 5:46 pm

Re: RSS feed and Default script

Post by Eejit »

Thanks shypike. It's nothing I've done then  :D

I dont quite understand. SAB set's the catergorie after the RSS fetch. 
The catagorie at the queue/download stage is set to TV, movies, apps etc. That bit works as it should. It seems to be picked up from the bookmark RSS.
Should not SAB adjust the script setting to the default setting in config>catagories AFTER the fetch?
Eejit - The name say's it all !!
Image
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: RSS feed and Default script

Post by shypike »

The category is NOT picked up from the RSS feed any more.
This fact reveals a bit of weak coding on my part.
When no category is available at RSS read time, the attributes of the default category
are used to set explicit categories.
That's not a good idea, but it did no harm as long as the nzbmatrix feed delivered the category.
I can fix my coding weakness, I have to do a lot more work to fix the nzbmatrix problem.

So the blame goes more or less equally to me and nzbmatrix.
Given the indifferent way my previous complaints were handled at nzbmatrix,
I'm not even going to bother complaining over there.
Eejit
Sr. Member
Sr. Member
Posts: 268
Joined: September 10th, 2008, 5:46 pm

Re: RSS feed and Default script

Post by Eejit »

OK, I have the understanding that my name implies  ;)
Whatever I bookmark, be it a movie, music, app or tv, when the nzb is fetched, the catagory is set

Image

These were all grabbed via the bookmark RSS feed and as can be seen, each different category has been set, correctly.
Eejit - The name say's it all !!
Image
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: RSS feed and Default script

Post by shypike »

When SABnzbd reads the feed, it gets no category (due to nzbmatrix's change).
It will set explicit pp/prio/script based on the default category.
When the NZB is retrieved through the nzbmatrix API it finally gets the category.
However, because explicit pp/prio/script values are set, the ones from the category are ignored.
That's the weak code I mentioned.
It's now exposed by the change in the RSS format.
That part is easy to fix for 0.6.1, the RSS format change is harder to do.
Eejit
Sr. Member
Sr. Member
Posts: 268
Joined: September 10th, 2008, 5:46 pm

Re: RSS feed and Default script

Post by Eejit »

Thanks for being so patient with me and explaining the problem in laymans terms  ;D
I now understand the problem and await 0.6.1 with baited breath.
Eejit - The name say's it all !!
Image
Eejit
Sr. Member
Sr. Member
Posts: 268
Joined: September 10th, 2008, 5:46 pm

Re: RSS feed and Default script

Post by Eejit »

Shypike, you and the team are stars. 0.6.1 RC1 fixes this problem of mine.
Thanks for all your continious hard work.
Eejit - The name say's it all !!
Image
Post Reply