2012-11-14, 04:02
Did you set in Pneumatic the ip/port of the pc that sab is on?
(2012-11-14, 04:02)Dixon Butz Wrote: Did you set in Pneumatic the ip/port of the pc that sab is on?
(2012-11-12, 19:57)samukas Wrote: That's really nice to hear Well, the part the it works of course!
I guess I speak for anyone here who has an ATV2 or Android device that I'm eager to try it out!
However, of course, feel free to clean up the code until you feel like it's polished enough... we will wait
Thank you so much for this developments on Pneumatic.
(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']
import re
RE_PART_X = r'(\S*?\.part\d{1,3}\.rar)'
RE_PART01_X = '(\S*?\.part0{0,2}1\.rar)'
RE_R_X = r'(\S*?\.[rs]\d{2,3})'
RE_RAR_X = r'(\S*?\.rar)'
RE_PART = '\.part\d{2,3}\.rar$'
RE_PART01 = '\.part0{1,2}1\.rar$'
RE_R = '\.[rs]\d{2,3}$'
def sorted_rar_nzf_file_list(nzf_list):
file_list = []
if len(nzf_list) > 0:
for nzf in nzf_list:
partrar = re.findall(RE_PART, nzf['Filename'])
rrar = re.findall(RE_R, nzf['Filename'])
if ((nzf['Filename'].endswith(".rar") and not partrar) or partrar or rrar):
file_list.append(nzf['Filename'])
else:
partrar_x = re.search(RE_PART_X, nzf['Filename'])
rrar_x = re.search(RE_R_X, nzf['Filename'])
rarrar_x = re.search(RE_RAR_X, nzf['Filename'])
out = None
if (rarrar_x and not partrar_x):
out = rarrar_x.group(1)
elif partrar_x:
out = partrar_x.group(1)
elif rrar_x:
out = rrar_x.group(1)
#Print info on non-rar files
print nzf['Filename']
print nzf['ID']
#Delete the non-rar files
rpc.editqueue("FileDelete", 0, "", nzf['ID'])
if len(file_list) > 1:
file_list.sort(key=lambda x: x)
return file_list
from xmlrpclib import ServerProxy
rpc = ServerProxy('http://nzbget:[email protected]:6789/xmlrpc')
groups = rpc.listgroups()
last_group = len(groups) - 1
#for i in groups:
# print i['NZBNicename']
#Select the ID of the test group (NZB)
number=0
for t in groups:
if t['NZBNicename'] == "Boardwalk.Empire.S01.1080p.BluRay.X264-BiRDHOUSE":
selected_group = number
number+=1
nzbid = groups[selected_group]['NZBID']
nzbname = groups[selected_group]['NZBNicename']
first_id = groups[selected_group]['FirstID']
last_id = groups[selected_group]['LastID']
#Use own Category
rpc.editqueue("GroupSetCategory", 0, "pneumatic", first_id)
#Disable PostProcessing
rpc.editqueue("GroupSetParameter", 0, "PostProcess=no", last_id)
#List all files in group
files = rpc.listfiles(first_id, last_id)
#for i in files:
# print i['Filename']
# print i['ID']
#Do the Regex Processing
sorted_rar_nzf_file_list(files)
(2012-11-16, 02:47)Popeye Wrote: For those who dare and are running xbmc an ATV2 and Android; try my latest commit to the pneumatic frodo-beta branch. Here I have added support for incomplete folder in XBMC managed shares (e.g. smb, nfs, ...). Browsing Incomplete folder of completed dl's doesn't work as well as browsing local nzb files. If you already have a locally mounted incomplete folder, then this is nothing for you and you should just wait for the next proper pneumatic release
cd
rm -rf /var/mobile/Library/Preferences/XBMC/addons/plugin.program.pneumatic/
git clone git://github.com/TsUPeR/xbmc-pneumatic.git /var/mobile/Library/Preferences/XBMC/addons/plugin.program.pneumatic/
cd /var/mobile/Library/Preferences/XBMC/addons/plugin.program.pneumatic/
git checkout -b frodo-beta origin/frodo-beta
chown -R mobile:mobile /var/mobile/Library/Preferences/XBMC/addons/plugin.program.pneumatic/
(2012-11-16, 06:12)redsoxboi21 Wrote: @Skindred
How can you use Pneumatic on 3G on your iPad? I thought you would have to be on wifi to use SABnzbd on your PC to use as a backbone?
(2012-11-16, 06:22)Skindred Wrote:(2012-11-16, 06:12)redsoxboi21 Wrote: @Skindred
How can you use Pneumatic on 3G on your iPad? I thought you would have to be on wifi to use SABnzbd on your PC to use as a backbone?
SABnzbd also runs on the iPad itself
It's called iSABnzbd and can be installed via Cydia by adding a repository.
It works great with Pneumatic, just know that the SABnzbd speeds won't be fast.
(2012-11-16, 10:16)Popeye Wrote:(2012-11-16, 06:22)Skindred Wrote:(2012-11-16, 06:12)redsoxboi21 Wrote: @Skindred
How can you use Pneumatic on 3G on your iPad? I thought you would have to be on wifi to use SABnzbd on your PC to use as a backbone?
SABnzbd also runs on the iPad itself
It's called iSABnzbd and can be installed via Cydia by adding a repository.
It works great with Pneumatic, just know that the SABnzbd speeds won't be fast.
Skindred, glad you liked it but...
If you run SAB on the same device as Pneumatic then the Frodo-beta is nothing for you. The only added function is accessing the SAB incomplete folder over SMB or NFS.
Also, for installing just download the frodo-beta.zip and add it through the XBMC addon manager. For you who don't need xbmc - SMB or NFS support just install the repo repository.popeye-1.0.1.zip
For Nzbget I believe the best would be to fork Pneumatic since it relies heavily on SAB's structure and API's. If Nzbget has the same structure of nzb and file id's then there might be a possibility to create a common abstraction layer..