For Streaming: Direct Download to Folder or Delayed Post-Processing

Want something added? Ask for it here.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: For Streaming: Direct Download to Folder or Delayed Post-Processing

Post by shypike »

Sure.
We have more bizarre options too :)
Usenet
Jr. Member
Jr. Member
Posts: 87
Joined: February 12th, 2008, 6:04 pm

Re: For Streaming: Direct Download to Folder or Delayed Post-Processing

Post by Usenet »

Managed to get streaming working. If you could squeeze in the streaming option per job for 0.6 would be amazing!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: For Streaming: Direct Download to Folder or Delayed Post-Processing

Post by shypike »

Sorry, not for 0.6.0 otherwise we'll never get it finished.
In front of the queue for the minor release after that.
Usenet
Jr. Member
Jr. Member
Posts: 87
Joined: February 12th, 2008, 6:04 pm

Re: For Streaming: Direct Download to Folder or Delayed Post-Processing

Post by Usenet »

Think I found a workaround for the individual job streaming option. The default setting for post processing is +delete and this will cause SABnzbd to proceed as usual. If running "api?mode=change_opts&value=SABnzbd_nzo_zt2syz&value2=0" the job will fail. Then running "api?mode=retry&value=SABnzbd_nzo_zt2syz" the job will be repaired.
indolering
Newbie
Newbie
Posts: 3
Joined: July 16th, 2008, 12:08 am

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by indolering »

Usenet wrote:Think I found a workaround for the individual job streaming option. The default setting for post processing is +delete and this will cause SABnzbd to proceed as usual. If running "api?mode=change_opts&value=SABnzbd_nzo_zt2syz&value2=0" the job will fail. Then running "api?mode=retry&value=SABnzbd_nzo_zt2syz" the job will be repaired.
Could you elucidate on this a bit? Did you get it working, and if so, a post processing script or instructions would be nice : )

I couldn't find the streaming option in the normal SAB switches, did this make it into 6.5?

Thank you,
-Zach
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by shypike »

If you set the (hidden) option "allow_streaming" (see here: http://wiki.sabnzbd.org/configure-special )
That will make any job that has "download" as post processing option, remain in "incomplete".
At the end of the download, the job enters History as a "Failed" job, so that everything will remain in "incomplete".
Later you can choose to delete or retry in +D mode.
It's an "experimental" feature without much support.
Usenet
Jr. Member
Jr. Member
Posts: 87
Joined: February 12th, 2008, 6:04 pm

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by Usenet »

I'm back!
Streaming of nzb's using XBMC has been working great for quite some time now. However there is one issue with .mkv's where XBMC wants to seek to the last rar file. Nothing of this is of course SAB's problem. I just want to download the first (done) and the last rar, then the rest.
Is there any API call I could use to change the order of individual files in a nzb? Since it's doable through the web UI, there must exist other ways as well or :D ?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by shypike »

It is possible through the API, but not an easy thing to do.
http://wiki.sabnzbd.org/api
You'd need multiple API calls.

Designing this kind of specific behavior into SABnzbd is a bit bizarre.
I'll look into it, but consider it a low prio, especially because I'm not sure this
will ever leave the "experimental" stage.
Usenet
Jr. Member
Jr. Member
Posts: 87
Joined: February 12th, 2008, 6:04 pm

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by Usenet »

Hi,

I already today list the individual files, so that call is done (api?mode=get_files&output=xml&value=SABnzbd_nzo_zt2syz
). But I dont find any API info on how to move the file X.99r to the top of the job SABnzbd_nzo_zt2syz's content list and thus be downloaded before X.02r. Follow what I'm trying to do?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by shypike »

Check the api info. There is a move command.
It requires the file's id (not the name), the old and new position.
Usenet
Jr. Member
Jr. Member
Posts: 87
Joined: February 12th, 2008, 6:04 pm

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by Usenet »

Edit:

I think we are talking about two different things but I still appreciate your help :D

By running:

Code: Select all

api?mode=get_files&output=xml&value=SABnzbd_nzo_zt2syz
I get something like

Code: Select all

...
<file>
<status>active</status>
<mb>98.27</mb>
<age>31d</age>
<bytes>103048697.00</bytes>
<filename>
Movie.part010.rar
</filename>
<mbleft>96.76</mbleft>
<nzf_id>SABnzbd_nzf_hhrqxz</nzf_id>
<id>11</id>
</file>
...
Running this

Code: Select all

http://127.0.0.1:8080/sabnzbd/nzb/SABnzbd_nzo_zt2syz/bulk_operation?session=*******&action_key=Top&SABnzbd_nzf_hhrqxz=on


does just what I want, placing the Movie.part010.rar in the top of the individual files of the queue object SABnzbd_nzo_zt2syz

The bulk_operation API is not part of the API documentation, so is there any other means to achieve the same thing?
Usenet
Jr. Member
Jr. Member
Posts: 87
Joined: February 12th, 2008, 6:04 pm

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by Usenet »

Looks like we discussed the issue here http://forums.sabnzbd.org/viewtopic.php ... 258#p46258 to... :D
Usenet
Jr. Member
Jr. Member
Posts: 87
Joined: February 12th, 2008, 6:04 pm

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by Usenet »

Will the "allow_streaming = 1" go into the official documentation or will it stay experimental?
The nzbs.org addon for XBMC is totally dependent on this... :D
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by shypike »

It's not going to be removed.
It's just that we haven't a clear idea yet how to present this in a user-friendly way.
Usenet
Jr. Member
Jr. Member
Posts: 87
Joined: February 12th, 2008, 6:04 pm

Re: For Streaming: Direct Download to Folder or Delayed Post

Post by Usenet »

Great news! As long as it stays I guess it could be left under hood :D
Post Reply