[RELEASE] Pneumatic

  Thread Rating:
  • 9 Votes - 4.56 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Hi8 Offline
Junior Member
Posts: 4
Joined: Oct 2004
Reputation: 0
Post: #1666
(2014-07-03 21:46)timgt Wrote:  It works fine in Gotham, even Helix which is what I am running. Just make a small change in the addon.xml file so that the python version says python version 2.1.0 and then it installs fine.

Popeye, is there any way to have Pneumatic look in the par2 file before anything else? This file is what shows what order the .rar files are in when they use the format like .10, .11, .12, etc. which are out of order.
These are the files that Pneumatic fails to find a playable file in. I'm sure it would require a lot of work but is it possible that this is the solution for the encrypted/hashed files that fail to play??

ok, I'm confused..too.

I unzipped the repository thinking I would find addon folders for each, and within those an addon.xml file for each that I would edit.

that's not what I found? where is the addon.xml file you have to edit?

this is the folder that was created :

repository.popeye

and these are the only two files inside: addon.xml, changelog.txt

this is the contents of the addon.xml

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="repository.popey" name="Popeye's Repo" version="1.0.1" provider-name="Popeye">
    <extension point="xbmc.addon.repository" name="Popeye's Repo">
        <info compressed="false">https://raw.github.com/TsUPeR/xbmc-repo/master/addons.xml</info>
        <checksum>https://raw.github.com/TsUPeR/xbmc-repo/master/addons.xml.md5</checksum>
        <datadir zip="true">https://raw.github.com/TsUPeR/xbmc-repo/master/repo/</datadir>
    </extension>
    <extension point="xbmc.addon.metadata">
        <summary>Popeye's repository</summary>
        <description>A reposistory of Popeye's addons for XBMC including Pneumatic and Newznab</description>
        <platform>all</platform>
    </extension>
</addon>
find quote
tinykingdoms Offline
Junior Member
Posts: 15
Joined: Feb 2010
Reputation: 0
Post: #1667
(2014-08-06 00:58)soljarag Wrote:  
(2014-08-05 08:32)tinykingdoms Wrote:  Can someone tell me what I'm doing wrong?

http://imgur.com/j6FOD2l.png

python -V
Python 2.7.6

I didn't have to change it for the pneumatic addon, only NewzNAB and NZBTV.. once i did that pneumatic installed...... Or at least that's what I remember happened.

Bare with me, but are you implying that you were able to install newznab and nzbtv? Every time I try to install them, I get a compatibility error and I can't even install.

If the plugins arent isntalled how do I edit the xml file.
find quote
Popeye Offline
Posting Freak
Posts: 920
Joined: Aug 2009
Reputation: 26
Location: Sweden
Post: #1668
The forum has stopped sending me mail when someone post so I thought the thread was dead Big Grin

I will fix the addon compatibility issues tonight since even I can't install them on my tablet running Gotham...

(2014-07-03 21:46)timgt Wrote:  It works fine in Gotham, even Helix which is what I am running. Just make a small change in the addon.xml file so that the python version says python version 2.1.0 and then it installs fine.

Popeye, is there any way to have Pneumatic look in the par2 file before anything else? This file is what shows what order the .rar files are in when they use the format like .10, .11, .12, etc. which are out of order.
These are the files that Pneumatic fails to find a playable file in. I'm sure it would require a lot of work but is it possible that this is the solution for the encrypted/hashed files that fail to play??

As far as I remember I looked into parsing the par2 file for getting the rar file order. However I couldn't find a clear table with nameX->nameY matches. The renaming is done once some checksum is calculated and for that the whole file needs to be present (AFAIK). Thus to get the correct order, all files has to be home and then the purpose of pneumatic is null...

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
(This post was last modified: 2014-08-15 11:21 by Popeye.)
find quote
Popeye Offline
Posting Freak
Posts: 920
Joined: Aug 2009
Reputation: 26
Location: Sweden
Post: #1669
Finally managed to do some fixes. Things should work just fine on Gotham now if you install my repo (link in first post).

Newznab 0.2.5
- Sort on name, size and date
- Youtube trailer search

Who knows, there might be more updates soon Big Grin

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
ursli Offline
Senior Member
Posts: 297
Joined: Nov 2011
Reputation: 7
Post: #1670
If you're fixing things, I still got this problem:

The sab category doesn't get set properly when using strm files with local nzb's. XBMC tends to crash if I then change my mind and want to delete the file mid download. Example of strm with local nzb:

Code:
plugin://plugin.program.pneumatic/?mode=strm&type=add_file&nzb=/media/Archiv/nzb/testfile.nzb&nzbname=testfile

If you use the newznab plugin or use remote nzb url with strm files it works as supposed to. Example of strm with remote nzb url:

Code:
plugin://plugin.program.pneumatic/?mode=strm&nzb=https%3A%2F%2Furl%2Fgetnzb%2Ftestfile.nzb%26i%3Did%26r%3Dkey&nzbname=testfile

It is quite easy for me to reproduce, force a category in settings, start a stream, press cancel, tell it to "Just download" -> local nzb, category does not get set. -> remote nzb url, category gets set.
(This post was last modified: 2014-08-16 13:16 by ursli.)
find quote
Popeye Offline
Posting Freak
Posts: 920
Joined: Aug 2009
Reputation: 26
Location: Sweden
Post: #1671
(2014-08-16 13:12)ursli Wrote:  If you're fixing things, I still got this problem:

The sab category doesn't get set properly when using strm files with local nzb's. XBMC tends to crash if I then change my mind and want to delete the file mid download. Example of strm with local nzb:

Code:
plugin://plugin.program.pneumatic/?mode=strm&type=add_file&nzb=/media/Archiv/nzb/testfile.nzb&nzbname=testfile

If you use the newznab plugin or use remote nzb url with strm files it works as supposed to. Example of strm with remote nzb url:

Code:
plugin://plugin.program.pneumatic/?mode=strm&nzb=https%3A%2F%2Furl%2Fgetnzb%2Ftestfile.nzb%26i%3Did%26r%3Dkey&nzbname=testfile

It is quite easy for me to reproduce, force a category in settings, start a stream, press cancel, tell it to "Just download" -> local nzb, category does not get set. -> remote nzb url, category gets set.

Could you help me out by testing the follwing change? In the file sabnzbd.py https://github.com/TsUPeR/xbmc-pneumatic...lt.py#L148
change
Code:
response = SABNZBD.add_file(nzb.encode('latin-1'), category=category)
to
Code:
response = SABNZBD.add_file(nzb.encode('latin-1'), cat=category)

Cheers!

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
ursli Offline
Senior Member
Posts: 297
Joined: Nov 2011
Reputation: 7
Post: #1672
I'm getting a script error with that change: http://pastebin.com/PcY2Vm80

(May be user error Big Grin)
find quote
Popeye Offline
Posting Freak
Posts: 920
Joined: Aug 2009
Reputation: 26
Location: Sweden
Post: #1673
(2014-08-18 12:10)ursli Wrote:  I'm getting a script error with that change: http://pastebin.com/PcY2Vm80

(May be user error Big Grin)

No user error this time. What I can see is that the category is set to None and that will cause the error..

One more change is needed in https://github.com/TsUPeR/xbmc-pneumatic...orm.py#L11

From
Code:
cat = kwargs.get('cat', 'Default')
to
Code:
cat = kwargs.get('cat', 'Default')
if cat is None:
    cat = "Default"

Hope this works..

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
ursli Offline
Senior Member
Posts: 297
Joined: Nov 2011
Reputation: 7
Post: #1674
Perfect, that works as intended now, thanks for looking into it. Smile
find quote
xbmosx Online
Junior Member
Posts: 15
Joined: Jun 2014
Reputation: 0
Post: #1675
Please bare with me. I tried to find the answer in here but didn't succeed.

I can get pneumatic to work with non-encrypted (non password protected) files, but everytime I try with encrypted files the only thing that happens is a message that ask me to clear out the failed folder yes/no. Password is preset in Sabnzbd when I start the download. The download unpacks fine with the provided password in Sabnzbd. I saw something about adding lines to utls.py but my utils.py doesn't even look like the one your referring to. Installed pneumatic version is 0.3.1 (from popeye repo). XBMC Gotham on OSX 10.9.4.

Is this just not possible or am I doing something wrong?

Thanks for your answer and this very cool plugin!
find quote
Popeye Offline
Posting Freak
Posts: 920
Joined: Aug 2009
Reputation: 26
Location: Sweden
Post: #1676
(2014-08-18 15:13)ursli Wrote:  Perfect, that works as intended now, thanks for looking into it. Smile

Excellent, I'll add the fix to next release.


(2014-08-18 15:52)xbmosx Wrote:  Please bare with me. I tried to find the answer in here but didn't succeed.

I can get pneumatic to work with non-encrypted (non password protected) files, but everytime I try with encrypted files the only thing that happens is a message that ask me to clear out the failed folder yes/no. Password is preset in Sabnzbd when I start the download. The download unpacks fine with the provided password in Sabnzbd. I saw something about adding lines to utls.py but my utils.py doesn't even look like the one your referring to. Installed pneumatic version is 0.3.1 (from popeye repo). XBMC Gotham on OSX 10.9.4.

Is this just not possible or am I doing something wrong?

Thanks for your answer and this very cool plugin!

I doubt XBMC has the ability to read through these files since Pneumatic merely provides a URI to the resource (e.g. rar://some.path/to.rar/content.mkv). If you find a way to play encrypted archives, then there might be a possibility for Pneumatic to support it.
Cheers! Big Grin

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
xbmosx Online
Junior Member
Posts: 15
Joined: Jun 2014
Reputation: 0
Post: #1677
(2014-08-18 15:52)xbmosx Wrote:  Please bare with me. I tried to find the answer in here but didn't succeed.

I can get pneumatic to work with non-encrypted (non password protected) files, but everytime I try with encrypted files the only thing that happens is a message that ask me to clear out the failed folder yes/no. Password is preset in Sabnzbd when I start the download. The download unpacks fine with the provided password in Sabnzbd. I saw something about adding lines to utls.py but my utils.py doesn't even look like the one your referring to. Installed pneumatic version is 0.3.1 (from popeye repo). XBMC Gotham on OSX 10.9.4.

Is this just not possible or am I doing something wrong?

Thanks for your answer and this very cool plugin!

Quote:I doubt XBMC has the ability to read through these files since Pneumatic merely provides a URI to the resource (e.g. rar://some.path/to.rar/content.mkv). If you find a way to play encrypted archives, then there might be a possibility for Pneumatic to support it.
Cheers! Big Grin

thanks for clarifying. I thought you were outlining a solution in this post http://forum.xbmc.org/showthread.php?tid...pid1619888 ?

one more question though, the utils.py that gets installed when coming from popey repo (first post) or fusion seems to be different than the one on github (https://github.com/TsUPeR/xbmc-pneumatic...r/utils.py). I'm a little confused about this. are there different versions? how can I make sure I have the latest version installed?

github example:

Code:
def rar_filenames(folder, file):
log("rar_filenames: folder: %s file: %s" % (folder, file))
temp = tempfile.NamedTemporaryFile('wb', delete=False)
# read only 1024000 bytes of the remote rar
buffer = read(join(folder, file), 'rb', 1024000)
# write it local for rar inspection
temp.write(buffer)
temp_path = temp.name
temp.close()
rf = rarfile.RarFile(temp_path)
delete(temp_path)
movie_file_list = rf.namelist()
log("rar_filenames: movie_file_list: %s" % movie_file_list)
for f in rf.infolist():
if f.compress_type != 48:
notification("Compressed rar!")
log("rar_filenames: Compressed rar")
return movie_file_list


installed example:
Code:
def rar_filenames(folder, file):
    log("rar_filenames: folder: %s file: %s" % (folder, file))
    filepath = join(folder, file)
    temp_path = os.path.join(__userdata__, 'temp.rar')
    # clean out potential old temp file
    delete(temp_path)
    # read only 1024 bytes of the remote rar
    buffer = read(filepath, 'rb', 1024)
    # write it local for rar inspection
    fd_out = open(temp_path,'wb')
    fd_out.write(buffer)
    fd_out.close()
    rf = rarfile.RarFile(temp_path)
    delete(temp_path)
    movie_file_list = rf.namelist()
    log("rar_filenames: movie_file_list: %s" % movie_file_list)
    for f in rf.infolist():
        if f.compress_type != 48:
            notification("Compressed rar!")
            log("rar_filenames: Compressed rar")
    return movie_file_list
(This post was last modified: 2014-08-18 21:35 by xbmosx.)
find quote
Popeye Offline
Posting Freak
Posts: 920
Joined: Aug 2009
Reputation: 26
Location: Sweden
Post: #1678
(2014-08-18 21:35)xbmosx Wrote:  thanks for clarifying. I thought you were outlining a solution in this post http://forum.xbmc.org/showthread.php?tid...pid1619888 ?

one more question though, the utils.py that gets installed when coming from popey repo (first post) or fusion seems to be different than the one on github (https://github.com/TsUPeR/xbmc-pneumatic...r/utils.py). I'm a little confused about this. are there different versions? how can I make sure I have the latest version installed?
......

Yes, I was outlining a solution but I now realized it would only work for Pneumatic, XBMC could still not read through the files (AFAIK)

Regarding the code difference. If you look at the commit history you would see that I haven't done a new release for the repo in a while. The diff will be in the next release.

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
xbmosx Online
Junior Member
Posts: 15
Joined: Jun 2014
Reputation: 0
Post: #1679
thank you popeye. very much appreciate your work!
find quote
Popeye Offline
Posting Freak
Posts: 920
Joined: Aug 2009
Reputation: 26
Location: Sweden
Post: #1680
(2014-08-19 12:48)xbmosx Wrote:  thank you popeye. very much appreciate your work!

I just did a quick google and found that XBMC apparently supports encrypted rars. The URI is rar://passwor@file://path/to/file.rar/content.mp4 so my suggested fix might work...

sverigesradio | Pneumatic | SABnzbd | XBMC that just works - openelec
find quote
Post Reply