Kodi Community Forum
[RELEASE] Pneumatic - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Pneumatic (/showthread.php?tid=97657)



- CrashX - 2011-08-29

speed32219 Wrote:Yes, it is donwloading now. I have donwloaded about 6 movies tyring the play option. It actually seems to find the movie faster than CP, and downloads just as fast. Was there anything else you might remember that you did?

Make sure that xbmc can access the incomplete folder ..


- Popeye - 2011-08-29

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

Yet another thing I should add a check for in the first run check of configuration. Right now I just ask the user to enter data. I'll might have to verify the function also...


- j1nx - 2011-08-29

Popeye Wrote:I plan to lift out nzbs so then the problem Will be general :-D
When the first rar is Home, I list its content and pick the first avi or mkv. I could of course present the content for the End user to pick if there are several files.

Can't you do it the other way around.

I think it looks kind of strange to have two plugin im my list as where I can only use nzb.su

If you are going to lift nzbs.org people will have three plugins!


Is it not better to pull back those plugins into the main one, but just come up with an own plugin system within the nzb streaming plugin. Then if only one plugin is selected, the main screen will be the selection screen of that plugin. If more plugins are activated the main screen will be a list of available nzb search engines.

Make more sense to me.


- Popeye - 2011-08-29

j1nx Wrote:Can't you do it the other way around.

I think it looks kind of strange to have two plugin im my list as where I can only use nzb.su

If you are going to lift nzbs.org people will have three plugins!


Is it not better to pull back those plugins into the main one, but just come up with an own plugin system within the nzb streaming plugin. Then if only one plugin is selected, the main screen will be the selection screen of that plugin. If more plugins are activated the main screen will be a list of available nzb search engines.

Make more sense to me.


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...


- j1nx - 2011-08-29

Popeye Wrote:M
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...

That is exactly what I meant. How to get there is totally up to you off course.

The potential of this plugin is so big, I still don't understand why this thread does not have over 100 pages? Icefilm does and that one is not working anymore for a while and judging on the new http://www.icefilm.info website it will not be free anymore in the future. (I guess)


- CrashX - 2011-08-29

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

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

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

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

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

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

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

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

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

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 ..