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

Want something added? Ask for it here.

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

Postby shypike » February 24th, 2011, 4:30 pm

Sure.
We have more bizarre options too :)
User avatar
shypike
Administrator
Administrator
 
Posts: 16549
Joined: January 18th, 2008, 1:49 pm

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

Postby Usenet » March 10th, 2011, 8:04 pm

Managed to get streaming working. If you could squeeze in the streaming option per job for 0.6 would be amazing!
Usenet
Jr. Member
Jr. Member
 
Posts: 84
Joined: February 12th, 2008, 7:04 pm

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

Postby shypike » March 11th, 2011, 3:34 am

Sorry, not for 0.6.0 otherwise we'll never get it finished.
In front of the queue for the minor release after that.
User avatar
shypike
Administrator
Administrator
 
Posts: 16549
Joined: January 18th, 2008, 1:49 pm

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

Postby Usenet » March 15th, 2011, 5:39 pm

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.
Usenet
Jr. Member
Jr. Member
 
Posts: 84
Joined: February 12th, 2008, 7:04 pm

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

Postby indolering » July 9th, 2011, 1:35 pm

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
indolering
Newbie
Newbie
 
Posts: 3
Joined: July 16th, 2008, 1:08 am

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

Postby shypike » July 9th, 2011, 5:55 pm

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.
User avatar
shypike
Administrator
Administrator
 
Posts: 16549
Joined: January 18th, 2008, 1:49 pm

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

Postby Usenet » October 27th, 2011, 8:35 am

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 ?
Usenet
Jr. Member
Jr. Member
 
Posts: 84
Joined: February 12th, 2008, 7:04 pm

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

Postby shypike » October 27th, 2011, 10:30 am

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.
User avatar
shypike
Administrator
Administrator
 
Posts: 16549
Joined: January 18th, 2008, 1:49 pm

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

Postby Usenet » October 27th, 2011, 10:51 am

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?
Usenet
Jr. Member
Jr. Member
 
Posts: 84
Joined: February 12th, 2008, 7:04 pm

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

Postby shypike » October 27th, 2011, 6:07 pm

Check the api info. There is a move command.
It requires the file's id (not the name), the old and new position.
User avatar
shypike
Administrator
Administrator
 
Posts: 16549
Joined: January 18th, 2008, 1:49 pm

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

Postby Usenet » October 27th, 2011, 6:17 pm

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: 84
Joined: February 12th, 2008, 7:04 pm

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

Postby Usenet » October 28th, 2011, 7:18 am

Looks like we discussed the issue here viewtopic.php?f=2&t=6681&p=46258#p46258 to... :D
Usenet
Jr. Member
Jr. Member
 
Posts: 84
Joined: February 12th, 2008, 7:04 pm

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

Postby Usenet » January 15th, 2012, 5:26 am

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
Usenet
Jr. Member
Jr. Member
 
Posts: 84
Joined: February 12th, 2008, 7:04 pm

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

Postby shypike » January 15th, 2012, 6:29 am

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.
User avatar
shypike
Administrator
Administrator
 
Posts: 16549
Joined: January 18th, 2008, 1:49 pm

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

Postby Usenet » January 15th, 2012, 6:33 am

Great news! As long as it stays I guess it could be left under hood :D
Usenet
Jr. Member
Jr. Member
 
Posts: 84
Joined: February 12th, 2008, 7:04 pm

Previous

Return to Feature Requests