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 - wolverine30008 - 2015-07-15

No Worries.I will try.
Thanks.Looking forward to the updated version


RE: [RELEASE] Pneumatic - wolverine30008 - 2015-07-15

Popeye- I have done the revisions to the utility.py file and still receive error "failed to write to incomplete folder"
Im new to python but the revisions are common sense red and green-delete and add right?But in this case its just the opposite.I am reversing what was done to the util.py file-but still no luck.
Next I will try each revision one by one and not change the others.Its worth a shot.

FYI-Xtreamer Wonder Box Android 4.4.2 Qaud Core A9
Mac OSX 10.10 Yosemite
helix 14.2

Here is a log with the original util.py http://xbmclogs.com/poumavmky
Here it is with the revisions u suggested http://xbmclogs.com/pjeoabtev

I reviewed the logs and best I could tell is at the end it states a clean error

By the way I double checked that the drive and incomplete folder is read/write enabled


RE: [RELEASE] Pneumatic - lightshow12 - 2015-07-20

I am encountering a similar issue as some others here when Pneumatic would get to a loop of trying to find the proper incomplete folder where SAB is currently downloading the file.


I've found the following with this set-up:

Baseline: SabNZBd, Newznab, and Pneumatic all configured with
21:02:16 T:139932039374592 NOTICE: -->Python Interpreter Initialized<--
21:02:16 T:139932039374592 NOTICE: plugin.program.pneumatic: v0.4.1 started
SAB: 0.8.x (Git Cloned onto CentOS Server)


Newznab works and can send the NZB for SABNZB to download with no problem. SabNZBd is set to allow_streaming so the rars come in order. This is verified by having XBMC/KODI play the raw file under incomplete while the NZB is still downloading (but has enough data for the first RAR to play the video).

SABNZBd is putting the incomplete files it downloads into the incomplete folder with no postprocessing. I've double checked the settings.xml files for all three plugins to verify they're set properly (under userdata)


So I'm looking at the default.py

def find_incomplete(folder, nzbname):
and def incomplete methods


Without any changes to your default.py, watching the logs I notice the following:

While tailing the kodi.log file in userdata (debug is set to true for pnuematic and sabnzbd)
Code:
20:32:01 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: folder: smb://TAKIMEDIA/takamini-kun/incomplete/masterchef.australia.s07e57.pdtv.x264-fqm/ sab_nzo_id: None
20:32:02 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: nzo_id: None
20:32:02 T:139932730091264  NOTICE: plugin.program.pneumatic: dir_exists: folder: smb://TAKIMEDIA/takamini-kun/incomplete/masterchef.australia.s07e57.pdtv.x264-fqm/ nzo_id: None
20:32:02 T:139932730091264  NOTICE: plugin.program.pneumatic: get_category: ask: False
20:32:02 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: type changed to addurl
20:32:02 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: type: addurl response: ok
20:32:02 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: sab_nzo_id_init: SABnzbd_nzo_8BeNHw
20:32:02 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: None for: 0 seconds
20:32:03 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_BIFfVN for: 1 seconds
20:32:04 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_BIFfVN for: 2 seconds
20:32:05 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_BIFfVN for: 3 seconds
20:32:06 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_BIFfVN for: 4 seconds
20:32:07 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_BIFfVN for: 5 seconds
20:32:08 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_BIFfVN for: 6 seconds
20:32:09 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_BIFfVN for: 7 seconds
20:32:10 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_BIFfVN for: 8 seconds
20:32:11 T:139932730091264  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_BIFfVN for: 9 seconds
20:32:12 T:139932730091264  NOTICE: plugin.program.pneumatic: find_incomplete: folder: smb://TAKIMEDIA/takamini-kun/incomplete/masterchef.australia.s07e57.pdtv.x264-fqm/ nzbname: masterchef.australia.s07e57.pdtv.x264-fqm
20:32:12 T:139932730091264  NOTICE: plugin.program.pneumatic: nzbname_lists:
Then it does an accurate list get for all the folders in that incompelete directory. What's strange is that after I am prompted to choose the folder (which I do), the variables get set to a single alphabetic letter. So the variable passing after the user chooses a folder through the XBMC Diagalog UI isn't working properly. This is also true when you close out the dialog box instead of choosing a folder from the UI. I see all the subsequent get incomplete folder calls now using this alphabet letter instead of the proper name which was set earlier in the routine correctly.

20:32:58 T:139932730091264 NOTICE: plugin.program.pneumatic: find_incomplete: folder: S nzbname: S



So in my setup, I've tried across a few platforms (MAC yosmite, Fedora 21, and Windows 7) with a few variants of the “incomplete” folder share. I've tested with the above logs from a Linux box doing the SMB path, I've tested with Windows 7 with a network drive mapped to Z:\ and with MAC doing an NFS mount to a local directory (so the path was absolute in Kodi/XBMC).

All of them come up with the same issue. I did look back into your previous git checkins for default.py but didn't see anything major stand out to me that would cause an issue (I've used a build of your plugin a year or two back with no issues).

I've also tried across Kodi 14.2, 14.0 and XBMC 13.2 Helix with the same results.


What I think is the culprit is this section:
Code:
def is_nzb_home(params):
    log("is_nzb_home: params: %s" % params)
    get = params.get
    nzb = utils.unquote_plus(get("nzb"))
    nzbname = m_nzb.Nzbname(utils.unquote_plus(get("nzbname"))).final_name
    folder = utils.join(INCOMPLETE_FOLDER, os.path.join(nzbname, ''))
    iscanceled = False
    type = get('type', 'addurl')
    sab_nzo_id = sabnzbd.nzo_id(nzbname, nzb)
    log("is_nzb_home: folder: %s sab_nzo_id: %s" %(folder, sab_nzo_id))
    if sab_nzo_id is None:
        nzo_id = sabnzbd.nzo_id_history(nzbname)
    else:
        nzo_id = sab_nzo_id
    log("is_nzb_home: nzo_id: %s" % nzo_id)

I'm hitting that last if else statement to get the sab_nzo_id

For some reason, it is unable to resolve that value properly and it is blank for the subsequent calls in the python.

Also could be due to API change in SABNZB
https://forums.sabnzbd.org/viewtopic.php?f=3&t=14842&p=85620

That thread mentions the "Check Before Download" Switch which makes the first ID one thing, then after the check, assigns a new nzo_id. I am not using that feature, however.


Just to further test, I set up a SABnzbd at the following versions: 0.7.4 0.7.20 and 0.8.0

Each test resulted in the same results in the kodi log with debugging turned on.


Code:
00:40:37 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: folder: smb://TAKIMEDIA/takamini-kun/incomplete/Shortland.Street.S24E111E112.HDTV.x264-FiHTV/ sab_nzo_id: None
00:40:37 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: nzo_id: None
00:40:37 T:139932039374592  NOTICE: plugin.program.pneumatic: dir_exists: folder: smb://TAKIMEDIA/takamini-kun/incomplete/Shortland.Street.S24E111E112.HDTV.x264-FiHTV/ nzo_id: None
00:40:37 T:139932039374592  NOTICE: plugin.program.pneumatic: get_category: ask: False
00:40:37 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: type changed to addurl
00:40:37 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: type: addurl response: ok
00:40:37 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: sab_nzo_id_init: None
00:40:37 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: None for: 0 seconds
00:40:38 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: None for: 1 seconds
00:40:39 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 2 seconds
00:40:40 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 3 seconds
00:40:41 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 4 seconds
00:40:42 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 5 seconds
00:40:43 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 6 seconds
00:40:44 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 7 seconds
00:40:45 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 8 seconds
00:40:46 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 9 seconds
00:40:47 T:139932039374592  NOTICE: plugin.program.pneumatic: find_incomplete: folder: smb://TAKIMEDIA/takamini-kun/incomplete/Shortland.Street.S24E111E112.HDTV.x264-FiHTV/ nzbname: Shortland.Street.S24E111E112.HDTV.x264-FiHTV
00:40:47 T:139932039374592  NOTICE: plugin.program.pneumatic: nzbname_lists:
....
Code:
00:40:56 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 10 seconds
00:40:57 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 11 seconds
00:40:58 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 12 seconds
00:40:59 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 13 seconds
00:41:00 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 14 seconds
00:41:01 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 15 seconds
00:41:02 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 16 seconds
00:41:03 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 17 seconds
00:41:04 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 18 seconds
00:41:05 T:139932039374592  NOTICE: plugin.program.pneumatic: is_nzb_home: waiting for nzb: sab_nzo_id: SABnzbd_nzo_UjW9vg for: 19 seconds
00:41:06 T:139932039374592  NOTICE: plugin.program.pneumatic: find_incomplete: folder: smb://TAKIMEDIA/takamini-kun/incomplete/Shortland.Street.S24E111E112.HDTV.x264-FiHTV/ nzbname: Shortland.Street.S24E111E112.HDTV.x264-FiHTV
00:41:06 T:139932039374592  NOTICE: plugin.program.pneumatic: nzbname_lists:

I'm going to try on a Windows Box again next with the SABnzbd at 0.7.4.

Same issue with the Windows Box with a Z:/ network mapped to a SMB share.


RE: [RELEASE] Pneumatic - wolverine30008 - 2015-07-29

I have finally figured out the problem for my situation with remote incomplete folder errors. I was in the process of forwarding my ports for all of my usenet programs and realized my mac yosemite was not listed on my routers networked device list as ethernet or wifi connected so I then traced the ethernet cord to its source...I couldnt beleive my eyes when I found it connected to another router and then to the mac .The fix was easy from there I bypassed the second router and connected it straight to the mac and BAMMM it worked.I can now access my incomplete folder from my android box and stream flawlessly.
So for those of you who may be experiencing the same incomplete folder error I was I suggest you take a close look at your connected devices via your router and make sure your device and pc/mac are listed if not traceback those connections to there origins.
Best of luck!

On another note-does anyone know why the nzbtv addon defaults to the remote channels.xml provided as a default from the addon author ckerrgald even though I have enabled the local channels xml via settings and an xml file on a zip drive with the same utf-8 encoding and tvrage/thetvdb format,select OK to save.I have cleared the cache multiple times in the addons userdata folder but it just rebuilds the .tbn file from the default remote xml.It should work I dont get it!
FYI-as a last resort I have copy and pasted the remote xml and have edited for my favorite chanels and shows.I only listed maybe 20 different channels and 70 shows in my local xml on my zip drive but when selecting the addon it loads the same default remote xml listing much more channels.Is there a special xml I should be using or could popeye or anyone looking to lend a hand on this thread please post a link of an example xml they might use locally

Any help or advice is appreciated
Thanks


RE: [RELEASE] Pneumatic - wolverine30008 - 2015-09-16

Hey popeye
Looking forward to the add-on update.Any progress or news for the forum.


RE: [RELEASE] Pneumatic - XsupergurkeX - 2015-09-21

First, sorry for my bad english, im german :/
Really cool addon popeye and thanks for the long time of supporting !

Have anyone succeeded to play encrypted NZB´s?
I have tried the solutions form earlier posts.
I tried to hardcode the password in the default.py, or add the line rf.setpassword('PASSWORD')
But it gives just an error ;/

If anyone has another solution, to make crypted files possible, it would nice to hear Smile


RE: [RELEASE] Pneumatic - rufus99 - 2015-09-30

Thank you Popeye for developing this amazing project!!

I just tried it running latest stable kodi on fire tv in combination with sabnzbd on a raspberry pi 2. Unfortunately i get the following error:
First steps are working well: opening Newznab > select a video file > Request to SABnzbd succeeded, downloading rar-file (in some cases downloads a second rar-file)
then "Pneumatic Error - View logfile for information"
opening the videofile now from the pneumatic-addon>incomplete, results in the same error. After waiting a while and opening it again from pneumatic addon works (still not finished downloading).
i copied the following from the xbmc-log:
Quote:19:19:11 T:1754703392 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.pneumatic/default.py", line 938, in <module>
pre_play(nzbname, nzo=sab_nzo_id)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.pneumatic/default.py", line 352, in pre_play
return play_video(video_params)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.pneumatic/default.py", line 508, in play_video
utils.write_fake(file_list, folder)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.pneumatic/utils.py", line 75, in write_fake
write_remote(filename, RAR_HEADER, 'wb')
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.program.pneumatic/utils.py", line 438, in write_remote
temp = tempfile.NamedTemporaryFile(mode, delete=False)
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-17/lib/python2.6/tempfile.py", line 432, in NamedTemporaryFile
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-17/lib/python2.6/tempfile.py", line 254, in gettempdir
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-17/lib/python2.6/tempfile.py", line 201, in _get_default_tempdir
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
-->End of Python script error report<--
if you need more information to help me please let me know. Thank you!!


RE: [RELEASE] Pneumatic - jaqb - 2015-10-20

First of all thank you Popeye for this amazing add-on.
Just wanted to say that I'm using your add-on daily for 2 years now and I'm hoping you will continue developing it.


RE: [RELEASE] Pneumatic - Popeye - 2015-11-21

This project is not dead, just very very slow... Big Grin


[RELEASE] Pneumatic - simon_rb - 2015-11-21

(2015-11-21, 00:47)Popeye Wrote: This project is not dead, just very very slow... Big Grin

Great to hear from you Popeye!


RE: [RELEASE] Pneumatic - wolverine30008 - 2015-11-21

+1


RE: [RELEASE] Pneumatic - francescosoft - 2015-12-11

Hello,

I'm new to Usenet and i tried to watch some videos but most of them didn't play. I just get some RAR Error. Any advice how i can get German movies or how i can find the ones that are working ?

Regards,

Francesco


RE: [RELEASE] Pneumatic - jwmail - 2015-12-31

Hi Great add on.

it seems like I have Newznad, Pneumatic and Sabnzbd running and set up. I'm able to list nzbs and start download from within Newznab. The only thing is it doesn;t stream. It downloads the entire file and starts only playing the video when it has been downloaded completely.

I've checked the 'allow streaming' option in Sabnzbd+.

Any idea why it's not streaming?

Thanks,

JW


RE: [RELEASE] Pneumatic - bluenote - 2016-01-03

I'm interested in using this addon but I have a somewhat complicated use case - I want to use openelec clients and local nzbget, and, a separate installation, where pneumatic on openelec accesses a central nzbget server (for concurrent access with another openelec client.) is any/all of this possible, can anyone tell me?

thanks


RE: [RELEASE] Pneumatic - Popeye - 2016-01-04

(2015-12-31, 18:05)jwmail Wrote: Hi Great add on.

it seems like I have Newznad, Pneumatic and Sabnzbd running and set up. I'm able to list nzbs and start download from within Newznab. The only thing is it doesn;t stream. It downloads the entire file and starts only playing the video when it has been downloaded completely.

I've checked the 'allow streaming' option in Sabnzbd+.

Any idea why it's not streaming?

Thanks,

JW

Since the day they ruined usenet, most archive files are not in order and renamed on par repair making pneumatic quite useless for streaming...

(2016-01-03, 22:49)bluenote Wrote: I'm interested in using this addon but I have a somewhat complicated use case - I want to use openelec clients and local nzbget, and, a separate installation, where pneumatic on openelec accesses a central nzbget server (for concurrent access with another openelec client.) is any/all of this possible, can anyone tell me?

thanks
Pneumatic only supports communication with the sabnzbd addon who only supports the SABnzbd API and not nzbget. Concurrent access to a central SABnzbd install should be no problem.