sw1tch Wrote:When/if sabnzbd supports streaming it will be incorporated into this script. I've already had some success with it, just I don't think xbmc supports playing .rar files by webui commands.
Just thinking outloud here but:
what if you added a context menu option "stream" when right clicking on an nzb file?
Once the user selects the "stream" option, the plugin sends the nzb to sab along with an "Action on queue complete" command that specifies not to delete the rar files after the queue is completed
Your plugin then could start monitoring the queue (in the background) as it reports to the user "buffering xx%".
Once your plugin detects the queued item has reached 10% it can then send the command to xbmc's player to open the .rar archive and play the first video file that does not contain the expression "sample".
On completion of the file, (or if the user hits "stop" the plugin could ask the user if he would like to cleanup (delete the rars and pars).
An additional (probably much harder/impossible to code) add-on option would be:
For the script to monitor the queue status in the background while the movie is playing in its partially downloaded state.
Once it detects the queue has completed, the user can be notified and opt to switch to the completed file.
If the user chooses to switch to the completed file, then the plugin checks the current possition of the file being played, then automatically jumps to that possition in the completed file.
The plugin would then preform a cleanup on the "temporary" rar and par files that are normally deleted by sab after a queue completion.