[RELEASE] Pneumatic

  Thread Rating:
  • 10 Vote(s) - 4.6 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
lightshow12 Offline
Junior Member
Posts: 39
Joined: Mar 2010
Reputation: 0
Post: #1771
Hey Popeye,

I really appreciate your work on this addon. I've been using it since before the name change.

I do like how you've broken out the addons, it must make development a lot easier with the modularity.



For the others, I wanted to post some details on how to set it up with usenet crawler.

Things you need:

Log into usenet crawler website and click your username. Then on that page, it will show you what your api/rss key is.

Copy that key into a text document.


Next, we need your sabnzb API key. So, find your sabnzb web interface:

http://127.0.0.1:8080 (if you installed it on your own computer)

Then go to Config -> General

Then in that menu, you need to copy the API key to your text document

Then go to Config -> Special
Make sure allow_streaming has a checkbox checked next to it
If not, check the check box and save your settings

UPDATE - this has to be done through the ini file, then restart sabnzbd

All configuration data is stored in the so-called INI file. Which INI file used, you can see on the Configuration main page.
The default location is:

Windows XP/2003 c:\documents and settings\user\local data\application data\sabnzbd\sabnzbd.ini
Windows Vista or 7 c:\Users\user\AppData\Local\sabnzbd\sabnzbd.ini
Unix $HOME/.sabnzbd/sabnzbd.ini
OSX /Users/user/Library/Application Support/SABnzbd/sabnzbd.ini





Then go to Config -> Folders
Temporary Download Folder = Change it to a new folder name: ex.
C:\Users\Myself\Downloads\incomplete2
The reason for this is the app got a little confused last time when I had a bunch of old junk in my incomplete folder, so this starts it fresh.
Save Changes







Next, download Popeyes repository from the first page in this thread. In Kodi, go to settings -> addons

Then choose install addon from zip file. Then navigate to where you downloaded that zip file. Users -> YourName -> Downloads -> repository.popeye-1.0.1.zip

Once installed:

In Kodi main screen:

System -> Addons -> Get Addons -> Popeye's Repo ->

Then, Program Add-ons -> Pneumatic (install it)
Program Add-ons -> SABnzbd (install it)

Then go back
Video Add-Ons -> Newznab (install it)
Video Add-Ons -> NzbTV (install it)



Ok, now configure SABnzb addon:

From Kodi Main Screen

System -> Add-ons -> Get Addons -> Popeye's Repo ->Program Add-ons ->

Right click and choose configure on SABnzbd

SABnzbIP = 127.0.0.1 (or what the IP address you used eariler is)
SABnzbAPI Key = paste it in

Then hit OK

Ok, now configure Newznab addon (this is just the thing that gets your usenet website information; newznab is a template type site for nzb browsing and indexing like wordpress is for blogs):

From Kodi Main Screen

System -> Add-ons -> Get Addons -> Popeye's Repo ->Video Add-ons ->

Click Newznab and choose configure:

Choose Site1

Display Name = Usenet Crawler
Site api URL = usenet-crawler.com/api
Site rss url = ignore
Use HTTPS = leave radio button blue
Site id (i) = ignore
Site 1 = paste that api key you got eariler

Click OK

Ok, now configure Pneumatic addon:

From Kodi Main Screen

System -> Add-ons -> Get Addons -> Popeye's Repo ->Program Add-ons ->

Right click and choose configure on Pnuematic.


General -> SABnzbd -> SABnzbd incomplete folder
This was C:\Users\Myself\Downloads\incomplete2
or whatever folder you set it to


Now, give it a test:

Kodi Main Screen

Videos -> Addons -> Newznab

Once you click on it you'll get a menu of a bunch of stuff

Go to TV -> (SubItem) SD

A list of SD TV shows appear

Click on the first one tv show you see like Dexter S02E011

Be Patient! Only click once! There is a API webservice call that's happening, so don't over click or your downloads will bunch up and cause chaos!

About 3 seconds later, a screen will pop up with the progress bar moving and text displaying what % complete the download is.

Then magically, it will start streaming. The video will play until the end. If you want to stop and resume your movie, just browse for it at C:\Users\Myself\Downloads\incomplete2


That will set everyone off to a good start.

Once the download is a certain partial amount (
(This post was last modified: 2015-05-28 05:19 by lightshow12.)
find quote
chewy72 Offline
Junior Member
Posts: 3
Joined: Oct 2011
Reputation: 0
Post: #1772
phenomenal release Popeye!!

Quick question, i seem to be stuck in the "Select download directory" loop,

i installed all of the components from the repo yesterday, everything seems to be working, browse nzb.su download nzb... the download starts and every 10 seconds throws up the select download directory, i select the directory that has been created in incomplete and then it polls again later..

running Kodi 14.2 (on a Fire TV)

thanks
(This post was last modified: 2015-07-11 03:46 by chewy72.)
find quote
wolverine30008 Offline
Junior Member
Posts: 41
Joined: May 2014
Reputation: 0
Post: #1773
Does anyone know if this works via an android box?I keep getting "failed to write test rar to incomplete folder" error after filling in settings fields and pressing OK it reverts back to the settings feild and produces the error just mentioned.
Being that apple has abandoned the SMB protocol and AFP isnt working for me either I am accessing the sabnzbd folder via "Windows SMB" and the "SMBup.app via my mac mini on the same network.The box has an ethernet and wifi connection.I have tried both ethernet and wifi set the same on both devices and its just not working.What am I doing wrong?Funny thing is I am able to play my tv and movies via smb
from the mac mini to Android box with no problems at all and even access my sickbeard and couchpotato via the addons.
Lastly,is this addon currently working for android or have I just been wasting my time??I have tired both helix and isengaurd builds and have even rolled back the releases to 3.0 but all give the same error or "wrong ip or port number on version 3.0 which cant be the case because I have accessed my sabnzbd via the addon with the same ip and port credentiials.All and all I am at a loss.Does anybody have this working with a somewhat similar setup via SMB??

Any help or advice is appreciated
Thanks
find quote
Popeye Offline
Posting Freak
Posts: 959
Joined: Aug 2009
Reputation: 27
Location: Sweden
Post: #1774
(2015-07-11 22:34)wolverine30008 Wrote:  Does anyone know if this works via an android box?I keep getting "failed to write test rar to incomplete folder" error after filling in settings fields and pressing OK it reverts back to the settings feild and produces the error just mentioned.
Being that apple has abandoned the SMB protocol and AFP isnt working for me either I am accessing the sabnzbd folder via "Windows SMB" and the "SMBup.app via my mac mini on the same network.The box has an ethernet and wifi connection.I have tried both ethernet and wifi set the same on both devices and its just not working.What am I doing wrong?Funny thing is I am able to play my tv and movies via smb
from the mac mini to Android box with no problems at all and even access my sickbeard and couchpotato via the addons.
Lastly,is this addon currently working for android or have I just been wasting my time??I have tired both helix and isengaurd builds and have even rolled back the releases to 3.0 but all give the same error or "wrong ip or port number on version 3.0 which cant be the case because I have accessed my sabnzbd via the addon with the same ip and port credentiials.All and all I am at a loss.Does anybody have this working with a somewhat similar setup via SMB??

Any help or advice is appreciated
Thanks

Yes, I made a stupid update of the temp file writing breaking some android devices. If you know a tiny bit of python you should be able to fix it by reverting, https://github.com/TsUPeR/xbmc-pneumatic...cdca4d60d8

This will be fixed once I manage to get my coding going again.. Big Grin

Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
wolverine30008 Offline
Junior Member
Posts: 41
Joined: May 2014
Reputation: 0
Post: #1775
No Worries.I will try.
Thanks.Looking forward to the updated version
find quote
wolverine30008 Offline
Junior Member
Posts: 41
Joined: May 2014
Reputation: 0
Post: #1776
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
(This post was last modified: 2015-07-15 23:14 by wolverine30008.)
find quote
lightshow12 Offline
Junior Member
Posts: 39
Joined: Mar 2010
Reputation: 0
Post: #1777
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...42&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.
(This post was last modified: 2015-07-21 02:56 by lightshow12.)
find quote
wolverine30008 Offline
Junior Member
Posts: 41
Joined: May 2014
Reputation: 0
Post: #1778
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
(This post was last modified: Yesterday 22:12 by wolverine30008.)
find quote
Post Reply