XBMC Community Forum
[RELEASE] Pneumatic - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Pneumatic (/showthread.php?tid=97657)



- CrashX - 2011-08-29 17:45

Popeye Wrote:My plugin contains 4 independent functions; Site listing, SAB communication, rar parsing and playing of incomplete rar sets. Personally, if XBMC had supported it (and it partially does), I would have implemented these functions as stand alone plugins for others to use in their implementation.
I guess you could do a torrent or rapidshare player using my method of playing incomplete rar without copying the code and just use a simple api call (as I do with youtube and Vimeo in my radbox plugin).

I created and lifted out nzb.su as a example for others to develop their own site support and to separate the site development from the core functions. I also don't want to spend time on things that don't interest me...
I understand your point of view and will look into if there is some way of creating a "service" plugin so we could get rid of the unnecessary plugins in the UI...

I worked on the following fixes and it seems to be working:
- Merge back nzb.su into it ( Fixes hang issue at end of playback )
- Filter out sample.avi from rar file
- Delete nzb from queue/history after movie was done/stopped. Originally it was always in queue.

Issues still to address:
- It seems that after xbmc playback of first rar is done, it doesn't continue on to second rar file. It actually stop playback now. Any ideas ? Download isn't stopeed though and second rar file is downloaded ?
- We need to put the size of download in title to know how big it is.
- Any reason why list_incomplete(params) & listFile(nzbname) contains similar code ? Would it better to split into a common function that both functions can call ?
- Instead of writing another plugin, we should abstract out RSS URL for each site. User selects site ( nzbmatrix, nzb.org, nzb.su, etc ) and key and number of results. ie

Movies:- <SITEURL>?dl=1&i=<SITEID>&r=$KEY&num=$NUMRESULTS&
Tv Shows:- <SITEURL>?dl=1&i=<SITEID>&r=$KEY&num=$NUMRESULTS&

We can also use this information to set the content.


- j1nx - 2011-08-29 18:52

Also have a look at Mar2zz his fork. Nzb.su should be called newznab as the code is released and there are more of them out there. The url should therefor be one of the ariables.

I have an own newznab server for some dutch community. No limits, so if you need one for testing, just shout.


- Popeye - 2011-08-29 19:13

CrashX Wrote:I worked on the following fixes and it seems to be working:
- Merge back nzb.su into it ( Fixes hang issue at end of playback )
- Filter out sample.avi from rar file
- Delete nzb from queue/history after movie was done/stopped. Originally it was always in queue.

Issues still to address:
- It seems that after xbmc playback of first rar is done, it doesn't continue on to second rar file. It actually stop playback now. Any ideas ? Download isn't stopeed though and second rar file is downloaded ?
- We need to put the size of download in title to know how big it is.
- Any reason why list_incomplete(params) & listFile(nzbname) contains similar code ? Would it better to split into a common function that both functions can call ?
- Instead of writing another plugin, we should abstract out RSS URL for each site. User selects site ( nzbmatrix, nzb.org, nzb.su, etc ) and key and number of results. ie

Movies:- <SITEURL>?dl=1&i=<SITEID>&r=$KEY&num=$NUMRESULTS&
Tv Shows:- <SITEURL>?dl=1&i=<SITEID>&r=$KEY&num=$NUMRESULTS&

We can also use this information to set the content.

For latest code check out the git repo
Why filter out? I have a fix for displaying all files if more than one..
Delete is in the incomplete folder context menu of the movies file. Will move it out to the incomplete first listing and a 'delete all' option
Size in listing is on the todo...
The two different listing is due to the two completely different approaches of accessing the files. I have made some simplifications in the code and I think its in the repo...

I have quite limited time to code and will focus on getting core functions to work. If you want extended site support and UI chrome please go ahead and fork and/or contribute


- speed32219 - 2011-08-29 20:33

CrashX Wrote:Make sure that xbmc can access the incomplete folder ..

I double checked the sab config for proper paths to the complete/incomplete folders. When I download a file it is first put into the incomplete folder, then sent to the complete folder when finished, processed and moved to my movie folder.

All that works just fine. But if I select the NZBS icon it takes me to the incomplete folder and I can see the movies that is being downloaded. If I click on the movie, I thought it might let me watch it, it starts the time for view countdown again, even if half the download is complete.


- Popeye - 2011-08-29 21:02

speed32219 Wrote:I double checked the sab config for proper paths to the complete/incomplete folders. When I download a file it is first put into the incomplete folder, then sent to the complete folder when finished, processed and moved to my movie folder.

All that works just fine. But if I select the NZBS icon it takes me to the incomplete folder and I can see the movies that is being downloaded. If I click on the movie, I thought it might let me watch it, it starts the time for view countdown again, even if half the download is complete.

By access we mean, can XBMC write in this folder?
If the files gets moved out of the incomplete by SAB, something is wrong in your setup. Read the first post again.


- timgt - 2011-08-29 22:01

With the new default.py you released in your GIT an hour ago my NZBS plugin no longer works. just get errors

Nevermind, it was a bad download, I just copied your text and put it in manually and now it works somewhat, the download works but the stream doesnt start, its give me an error.


- Popeye - 2011-08-29 22:40

timgt Wrote:With the new default.py you released in your GIT an hour ago my NZBS plugin no longer works. just get errors

Nevermind, it was a bad download, I just copied your text and put it in manually and now it works somewhat, the download works but the stream doesnt start, its give me an error.

Well I never said things straight from the git would work in all parts Big Grin . I test features and some times other things break... but the latest commit 17e59035d25ea81eca95 in master works for me..


- CrashX - 2011-08-30 02:37

Popeye Wrote:For latest code check out the git repo
Why filter out? I have a fix for displaying all files if more than one..
Delete is in the incomplete folder context menu of the movies file. Will move it out to the incomplete first listing and a 'delete all' option
Size in listing is on the todo...
The two different listing is due to the two completely different approaches of accessing the files. I have made some simplifications in the code and I think its in the repo...

I have quite limited time to code and will focus on getting core functions to work. If you want extended site support and UI chrome please go ahead and fork and/or contribute

Displaying all files is a better fix ... I just wanted a quick for now ...Big Grin
Any ideas why it stops after first rar ?
Should we delete everything after we are done watching movie ?


- Popeye - 2011-08-30 07:32

CrashX Wrote:Displaying all files is a better fix ... I just wanted a quick for now ...Big Grin
Any ideas why it stops after first rar ?
Should we delete everything after we are done watching movie ?

If the rar is corrupted or the download is to slow?
The 7byte rars should all be deleted once the movie starts playing but we dont need to touch the others.

BTW, to all who has crashes with nzb.su, what skin are you using?


- CrashX - 2011-08-30 08:02

Popeye Wrote:If the rar is corrupted or the download is to slow?
The 7byte rars should all be deleted once the movie starts playing but we dont need to touch the others.

BTW, to all who has crashes with nzb.su, what skin are you using?

I replaced the following in def playVideo(params) after if mode == MODE_AUTO_PLAY: check:

# wait for movie to finish to delete it
time.sleep(10)
print "Debug:: Checking for playback finished ..."
while (xbmc.Player().isPlayingVideo()):
time.sleep(1)
delete(params)

which handles deletion of everything ..