chunk_1970 Wrote:I dont see that it would be too difficult to add in support to pass the data to your code in xbmc. It would be no great shakes to pass the nzb to your code especially if there was a httpapi command that called your code passing the nzb file, people could basically click the file on the site and select an option like (play now) and your code then does its business..
something like this is exactly like what im thinking! I configured torrent-x with utorrent this evening with a view to getting to know more about this side of things... i never used bittorrent before but can i say wow... that is a very cool app/script combo! i haven't looked at a bit of python source yet however.. if it's ok with you, torrent-x and sabController are my first ports of call tho!! i don't know how if woudl fit in with your current plans but it could be a nice option when using the sabcontroller plugin for torrent-x, to have a play/open option as well as a download option!
i wasn't able to get sabController working with sabnzbd however... need to do some rtfm'ing before i start asking questions!!... i keep getting a "Login Finished.." message and nothing more happens.
i'm not sure about how a python script can best get the nzb info into the module that i am working on... the classes i have written are really buried under a lot of api and unless there is already a way of getting string data into a CFileNZB / CNzbDirectory class, then something less pretty might be necessary. One that comes to mind which would be very easy would be to save the NZB on the Z: drive somewhere and then play the file from the z drive (or even save it in the python script's directory=self contained)... that will work every time!