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)



RE: [RELEASE] Pneumatic - simon_rb - 2012-07-01

(2012-07-01, 18:10)ursli Wrote: Check \addons\plugin.program.pneumatic\utils.py

Line 40 and 44

Hi,

Nope can't find that. I'm using OpenELEC. I can only find addon_data under userdata which only has settings.xml

Cheers


RE: [RELEASE] Pneumatic - ursli - 2012-07-02

(2012-07-01, 18:23)simon_rb Wrote: Hi,

Nope can't find that. I'm using OpenELEC. I can only find addon_data under userdata which only has settings.xml

Cheers

You're looking in the wrong folder, it's not in userdata. I'm not sure how OpenELEC is setup but I would guess it's similar to ubuntu, The addon folder should be in your users home folder, something like: home/user/.xbmc/addons/plugin.program.pneumatic/

edit: short google and it seems like openelec is storing it here: /storage/.xbmc/addons/


RE: [RELEASE] Pneumatic - simon_rb - 2012-07-02

(2012-07-02, 16:04)ursli Wrote:
(2012-07-01, 18:23)simon_rb Wrote: Hi,

Nope can't find that. I'm using OpenELEC. I can only find addon_data under userdata which only has settings.xml

Cheers

You're looking in the wrong folder, it's not in userdata. I'm not sure how OpenELEC is setup but I would guess it's similar to ubuntu, The addon folder should be in your users home folder, something like: home/user/.xbmc/addons/plugin.program.pneumatic/

edit: short google and it seems like openelec is storing it here: /storage/.xbmc/addons/

I did try google but couldn't find anything. Lol. Have you edited to code? If so, any joy?

Had to SSH and change the code. All done and still having the same problems.. Will keep trying different releases.

Thanks to both Popeye and Ursli

Cheers


RE: [RELEASE] Pneumatic - bwqbbq - 2012-07-05

Awesome plug-in! I've added support to CouchPotato and sent a pull request for it. You should probably work on the documentation though, not all of the API calls are described on Github :p

I was also wondering if you could add support for nzbget? Aside from SABnzbd, it's the other major usenet client and I actually prefer it because it is so lightweight and uses a lot less resources. I've had a look at your plug-in and I've cooked up a quick code sample for the things you need. Would be great if you could add support for it!

Code:
from xmlrpclib import ServerProxy
    rpc = ServerProxy('http://nzbget:tegbzn6789@localhost:6789/xmlrpc')

    # add nzb
    #
    rpc.append(nzb_name, 'movies', False, standard_b64encode(filedata.strip()))


    # wait for the nzb to get added to nzbget
    #
    groups = rpc.listgroups()
    while len(groups) == 0:
        groups = rpc.listgroups()

    last_group = len(groups) - 1
    while os.path.basename(groups[last_group]['NZBFilename']) != nzb_name:
        last_group = last_group - 1
        if last_group <= 0:
            last_group = len(groups) - 1
        groups = rpc.listgroups()
    
    first_id = groups[last_group]['FirstID']
    last_id  = groups[last_group]['LastID']

    # add to top of queue
    rpc.editqueue("GroupMoveTop", 0, "", last_id)


    files = rpc.listfiles(first_id, last_id)
    # you can loop through these and check the filename with files[index]['Filename']



RE: [RELEASE] Pneumatic - Popeye - 2012-07-06

(2012-07-05, 22:25)bwqbbq Wrote: Awesome plug-in! I've added support to CouchPotato and sent a pull request for it. You should probably work on the documentation though, not all of the API calls are described on Github :p

I was also wondering if you could add support for nzbget? Aside from SABnzbd, it's the other major usenet client and I actually prefer it because it is so lightweight and uses a lot less resources. I've had a look at your plug-in and I've cooked up a quick code sample for the things you need. Would be great if you could add support for it!

Code:
from xmlrpclib import ServerProxy
    rpc = ServerProxy('http://nzbget:tegbzn6789@localhost:6789/xmlrpc')

    # add nzb
    #
    rpc.append(nzb_name, 'movies', False, standard_b64encode(filedata.strip()))


    # wait for the nzb to get added to nzbget
    #
    groups = rpc.listgroups()
    while len(groups) == 0:
        groups = rpc.listgroups()

    last_group = len(groups) - 1
    while os.path.basename(groups[last_group]['NZBFilename']) != nzb_name:
        last_group = last_group - 1
        if last_group <= 0:
            last_group = len(groups) - 1
        groups = rpc.listgroups()
    
    first_id = groups[last_group]['FirstID']
    last_id  = groups[last_group]['LastID']

    # add to top of queue
    rpc.editqueue("GroupMoveTop", 0, "", last_id)


    files = rpc.listfiles(first_id, last_id)
    # you can loop through these and check the filename with files[index]['Filename']

Cool! Excellent work. Will take a look at nzbget once I get home from vacation... Big Grin




RE: [RELEASE] Pneumatic - workshy - 2012-07-06

Look forward to trying nzbget if you decide to go ahead with it Smile


RE: [RELEASE] Pneumatic - Popeye - 2012-07-06

(2012-07-06, 20:36)workshy Wrote: Look forward to trying nzbget if you decide to go ahead with it Smile

I've been thinking abut this and I have been a bit naive in the way I based all nzb communication around SAB. Best practice would have been a abstraction layer...
Two things you might be able to research for nzbget's API capabilities. Is it possible to stop/pause post processing? (the equivalent of SAB's allow_streaming). Is it possible to move a individual file in a queue to the top, like the last rar?

Cheers!



RE: [RELEASE] Pneumatic - skabyss - 2012-07-18

This is a VERY cool project! But I am a little confused by the whole .strm file part.. does this basically enable the nzb/stream to be added to the xbmc library? I noticed couchpotato recently got an update supporting this project, and offers the ability to make strm files, and was basically just confused by their purpose and when they are supposed to be generated..

Great project!


RE: [RELEASE] Pneumatic - dr99 - 2012-07-18

I didn't know couchpotato had pneumatic support now. That is great.


RE: [RELEASE] Pneumatic - Popeye - 2012-07-18

(2012-07-18, 01:29)skabyss Wrote: This is a VERY cool project! But I am a little confused by the whole .strm file part.. does this basically enable the nzb/stream to be added to the xbmc library? I noticed couchpotato recently got an update supporting this project, and offers the ability to make strm files, and was basically just confused by their purpose and when they are supposed to be generated..

Great project!

Thanks! Yes, Xbmc treats .strm files as any other media file (e.g. mkv .avi). The file can contain one or more links to internal (plugin://) or external (http://) urls. What I have done in pneumatic is the ability to send the url of the nzb to SAB and then stream..


RE: [RELEASE] Pneumatic - Michael.F - 2012-07-21

i can´t get it working on my htpc with a newznab site.
Everything works fine on my W7-Desktop with Xbmc but as soon as i try it on my Linux Htpc, it doesnt work.

It successfully transfers the nzb to Sabnzbd+ downloads the .rar and one or two addionational parts of the download, but it just doesn´t start playing. It only shows the option to finish the download or delete it.

The settings of the Addons are exceptly the same as one the desktop.. (except the Sabnzbd+ Server and the directories of course)

Any tips?


RE: [RELEASE] Pneumatic - unom - 2012-07-22

(2012-07-21, 21:45)Michael.F Wrote: i can´t get it working on my htpc with a newznab site.
Everything works fine on my W7-Desktop with Xbmc but as soon as i try it on my Linux Htpc, it doesnt work.

It successfully transfers the nzb to Sabnzbd+ downloads the .rar and one or two addionational parts of the download, but it just doesn´t start playing. It only shows the option to finish the download or delete it.

The settings of the Addons are exceptly the same as one the desktop.. (except the Sabnzbd+ Server and the directories of course)

Any tips?

I had the same problem. I changed the Pneumatic Post-processing settings to Delete and it seems to be working now.



Sv: [RELEASE] Pneumatic - Popeye - 2012-07-22

How abot write rights in the incomplete folder? Logs could be helpful :-D


RE: [RELEASE] Pneumatic - atmorell - 2012-07-22

I am also having problems with some releases. Download will start, but get the Delete/Download prompt. Any ideas on what is going on? Would say that I have this problem 10% of the time I try to stream something.

Here are the logs.
Code:
[code]16:40:44 T:2961379328  NOTICE: plugin.program.pneumatics could not open: /Users/atmorell/Downloads/incomplete/Warrior.2011.REPACK.720p.BluRay.x264-Felony.nfo
16:40:44 T:2961379328  NOTICE: -->Python Interpreter Initialized<--
16:40:45 T:2961379328  NOTICE: plugin.program.pneumatic SABnzbd message: -1 0
16:40:45 T:2961379328  NOTICE: plugin.program.pneumatic SABnzbd from url: http://192.168.1.101:8080/api?apikey=foo&mode=switch&value=SABnzbd_nzo_fhY93e&value2=0
16:40:45 T:2961379328  NOTICE: plugin.program.pneumatics could not open: /Users/atmorell/Downloads/incomplete/Warrior.2011.REPACK.720p.BluRay.x264-Felony.nfo
16:40:46 T:2961379328  NOTICE: -->Python Interpreter Initialized<--
16:40:46 T:2961379328   ERROR: SetContent called with an invalid handle.
16:40:46 T:2889042472  NOTICE: DVDPlayer: Opening: rar://%2fUsers%2fatmorell%2fDownloads%2fincomplete%2fWarrior%2e2011%2eREPACK%2e720p%2eBluRay%2ex264%2dFelony%2ff%2dwarrior%2erepack%2e720%2erar/f-warrior.repack.720.mkv
16:40:46 T:2889042472 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:40:46 T:2961911808  NOTICE: Creating InputStream
16:40:46 T:2961911808   ERROR: CDVDPlayer::OpenInputStream - error opening [rar://%2fUsers%2fatmorell%2fDownloads%2fincomplete%2fWarrior%2e2011%2eREPACK%2e720p%2eBluRay%2ex264%2dFelony%2ff%2dwarrior%2erepack%2e720%2erar/f-warrior.repack.720.mkv]
16:40:46 T:2961911808  NOTICE: CDVDPlayer::OnExit()
16:40:46 T:2961911808  NOTICE: CDVDPlayer::OnExit() deleting input stream
16:40:46 T:2889042472  NOTICE: CDVDPlayer::CloseFile()
16:40:46 T:2889042472 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:40:46 T:2889042472  NOTICE: DVDPlayer: waiting for threads to exit
16:40:46 T:2889042472  NOTICE: DVDPlayer: finished waiting
16:40:47 T:2961379328  NOTICE: # Playback Stopped #



RE: [RELEASE] Pneumatic - Michael.F - 2012-07-22

(2012-07-22, 13:01)Popeye Wrote: How abot write rights in the incomplete folder? Logs could be helpful :-D

I double-checked the rights but it didn´t fix it.
So here is a log:

"

19:15:57 T:2529020736 NOTICE: -->Python Interpreter Initialized<--
19:15:57 T:2529020736 NOTICE: plugin.program.pneumatic SABnzbd message: -1 0
19:15:57 T:2529020736 NOTICE: plugin.program.pneumatic SABnzbd from url: http://10.0.0.1:10065/api?apikey=16f2c15881493d6bc1a97a555b28b2b5&mode=switch&value=SABnzbd_nzo_2IKR7E&value2=0
19:15:57 T:2529020736 NOTICE: plugin.program.pneumatic SABnzbd message: -1 0
19:15:57 T:2529020736 NOTICE: plugin.program.pneumatic SABnzbd from url: http://10.0.0.1:10065/api?apikey=16f2c15881493d6bc1a97a555b28b2b5&mode=switch&value=SABnzbd_nzo_2IKR7E&value2=0
19:15:57 T:2529020736 ERROR: SetContent called with an invalid handle.
19:15:57 T:2989360960 NOTICE: DVDPlayer: Opening: rar://%2fhome%2fxbmc%2fDownloads%2fincomplete%2fDer%2eSchatzplanet%2e2002%2eGerman%2eAC3D%2eDL%2e720p%2eBluRay%2ex264%2dKLASSiGERHD%2fklassigerhd%2dschatzplanet%2e2002%2e720p%2erar/klassigerhd-schatzplanet.2002.720p.mkv
19:15:57 T:2989360960 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
19:15:57 T:2937346880 NOTICE: Creating InputStream
19:15:57 T:2937346880 WARNING: CreateLoader - Unsupported protocol(rar) in rar://%2fhome%2fxbmc%2fDownloads%2fincomplete%2fDer%2eSchatzplanet%2e2002%2eGerman%2eAC3D%2eDL%2e720p%2eBluRay%2ex264%2dKLASSiGERHD%2fklassigerhd%2dschatzplanet%2e2002%2e720p%2erar/klassigerhd-schatzplanet.2002.720p.mkv
19:15:57 T:2937346880 ERROR: CDVDPlayer::OpenInputStream - error opening [rar://%2fhome%2fxbmc%2fDownloads%2fincomplete%2fDer%2eSchatzplanet%2e2002%2eGerman%2eAC3D%2eDL%2e720p%2eBluRay%2ex264%2dKLASSiGERHD%2fklassigerhd%2dschatzplanet%2e2002%2e720p%2erar/klassigerhd-schatzplanet.2002.720p.mkv]
19:15:57 T:2937346880 NOTICE: CDVDPlayer::OnExit()
19:15:57 T:2937346880 NOTICE: CDVDPlayer::OnExit() deleting input stream
19:15:57 T:2989360960 NOTICE: CDVDPlayer::CloseFile()
19:15:57 T:2989360960 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
19:15:57 T:2989360960 NOTICE: DVDPlayer: waiting for threads to exit
19:15:57 T:2989360960 NOTICE: DVDPlayer: finished waiting
19:15:57 T:2529020736 NOTICE: # Playback Stopped #
19:15:58 T:2529020736 WARNING: Trying to add unsupported control type 1
"

I guess this is the interesting line: 19:15:57 T:2937346880 WARNING: CreateLoader - Unsupported protocol(rar) in rar://%2fhome%2fxbmc%2fDownloads%2fincomplete%2fDer%2eSchatzplanet%2e2002%2eGerman%2eAC3D%2eDL%2e720p%2eBluRay%2ex264%2dKLASSiGERHD%2fklassigerhd%2dschatzplanet%2e2002%2e720p%2erar/klassigerhd-schatzplanet.2002.720p.mkv