Networked Media Tank
Script to send NZB(url) to NZBGet using iOS - Printable Version

+- Networked Media Tank (http://www.networkedmediatank.com)
+-- Forum: NMT Software & Settings (/forumdisplay.php?fid=19)
+--- Forum: Torrent and Usenet (/forumdisplay.php?fid=64)
+--- Thread: Script to send NZB(url) to NZBGet using iOS (/showthread.php?tid=54163)

Pages: 1 2


Script to send NZB(url) to NZBGet using iOS - mrmaximum - 08-10-2011 04:21 PM

Because there is no way of uploading an NZB file to C-200 (I think this will work on any other NMT's) using my iPhone I made an nzbupload script.

The script will download and transfer a nzb file which can be provided using an url from an NZB download site and move it to the /.nzbget/nzb/ folder so NZBGet will start downloading.

This is done using php so all commands are done server-side. This means no bandwidth will be used by the iPhone.
  1. get the zip file below and copy the content to /nmt/apps/nzbgetweb/nzbupload/
  2. point your iphone to http://xx.xx.xx.xx:8066/nzbupload/
  3. get an url for an nzb. I use the site http://www.nzbindex.nl. Using the iPhone hold the link "download" and choose to copy the url
  4. paste the url in the nzbupload page and press "Send NZB to NMT!"

Screenshots:

[Image: IMG_01.PNG] [Image: IMG_02.PNG] [Image: IMG_03.PNG]

I secured the page by putting an .htpasswd in the nzbupload directory. For instructions use Google.

Download nzbupload 1.0


RE: Script to send NZB(url) to NZBGet using iOS - rvdet - 08-10-2011 09:08 PM

To use this script succesfully in firefox the index.php5 file needs to be renamed as .php (as well as one http link inside the file: i used a text editor)


gonna test this one on my htc legend.


you made my day !


RE: Script to send NZB(url) to NZBGet using iOS - mrmaximum - 08-10-2011 11:06 PM

(08-10-2011 09:08 PM)rvdet Wrote:  To use this script succesfully in firefox the index.php5 file needs to be renamed as .php (as well as one http link inside the file: i used a text editor)


gonna test this one on my htc legend.


you made my day !

For the popcorn c-200 it must be php5 or else it won't work. I tested the script with IE, Firefox, chrome and iOS. Al worked. The ectension php or php5 is determined by the server (popcorn) so it should be browser independent.

Do you own a different nmt?


RE: Script to send NZB(url) to NZBGet using iOS - rvdet - 08-11-2011 12:08 PM

(08-10-2011 11:06 PM)mrmaximum Wrote:  
(08-10-2011 09:08 PM)rvdet Wrote:  To use this script succesfully in firefox the index.php5 file needs to be renamed as .php (as well as one http link inside the file: i used a text editor)


gonna test this one on my htc legend.


you made my day !

For the popcorn c-200 it must be php5 or else it won't work. I tested the script with IE, Firefox, chrome and iOS. Al worked. The ectension php or php5 is determined by the server (popcorn) so it should be browser independent.

Do you own a different nmt?

No i dont,i have tested it on my a C200. The php5 page showed up as tekst in my browser. May be i need to install a programm on my C200 first?


RE: Script to send NZB(url) to NZBGet using iOS - mrmaximum - 08-11-2011 12:37 PM

(08-11-2011 12:08 PM)rvdet Wrote:  
(08-10-2011 11:06 PM)mrmaximum Wrote:  
(08-10-2011 09:08 PM)rvdet Wrote:  To use this script succesfully in firefox the index.php5 file needs to be renamed as .php (as well as one http link inside the file: i used a text editor)


gonna test this one on my htc legend.


you made my day !

For the popcorn c-200 it must be php5 or else it won't work. I tested the script with IE, Firefox, chrome and iOS. Al worked. The ectension php or php5 is determined by the server (popcorn) so it should be browser independent.

Do you own a different nmt?

No i dont,i have tested it on my a C200. The php5 page showed up as tekst in my browser. May be i need to install a programm on my C200 first?

I only have lundmanshell (CSI) installed nothing else. I don't think that's the issue.


RE: Script to send NZB(url) to NZBGet using iOS - mrmaximum - 08-11-2011 04:02 PM

I did the following to install the script:
  1. Download the zip and extract it to default smb share /share/nzbupload/
  2. Go to a terminal screen (putty) and type the following
  3. cp -r /share/nzbupload /nmt/apps/nzbgetweb/

That's it! No other alternations are neccesary!


RE: Script to send NZB(url) to NZBGet using iOS - rvdet - 08-13-2011 08:23 PM

i use the php file succesfully via my android as well.

not sure what is specific on my hardware here...

after all it does not matter, it works and that is so cool. the first ever solution for mobiles to initiate NZB downloads on the PCH.

as we say: hulde!

i suggest that it gets standard in the Androided NMT app to reach more users.


RE: Script to send NZB(url) to NZBGet using iOS - mrmaximum - 08-13-2011 08:28 PM

(08-13-2011 08:23 PM)rvdet Wrote:  i use the php file succesfully via my android as well.

not sure what is specific on my hardware here...

after all it does not matter, it works and that is so cool. the first ever solution for mobiles to initiate NZB downloads on the PCH.

as we say: hulde!

i suggest that it gets standard in the Androided NMT app to reach more users.

Grappig! Als ik had geweten dat je Nederlands sprak dan was het n stuk makkelijker geweest om t uit te leggen.

Graag gedaan btw en de groeten uit Z-Holland, Max


RE: Script to send NZB(url) to NZBGet using iOS - rvdet - 08-14-2011 10:13 PM

grtz from Leidschendam!


RE: Script to send NZB(url) to NZBGet using iOS - VincentB1980 - 10-06-2011 11:14 PM

Hi Max,

Great tool. I will test it when I´m home. Will it also work with password protected sites such as http://www.newzbin.com ?

Cheers,
Vincent


RE: Script to send NZB(url) to NZBGet using iOS - rvdet - 10-25-2011 05:44 PM

works like a charm still.


RE: Script to send NZB(url) to NZBGet using iOS - Majesty_nl - 11-02-2011 11:52 PM

over welke nzbget versie heb je het dan.. want bij 0.7is het een andere mapstructuur.
en als ik het daar in de webui map stop, geef de browser:

You don't have permission to access /NZBget_web/nzbupload/ on this server.


RE: Script to send NZB(url) to NZBGet using iOS - canaan - 12-23-2011 02:03 AM

(08-10-2011 09:08 PM)rvdet Wrote:  To use this script succesfully in firefox the index.php5 file needs to be renamed as .php (as well as one http link inside the file: i used a text editor)


gonna test this one on my htc legend.


you made my day !

I Also used this trick and it works on my android, thanks Smile


RE: Script to send NZB(url) to NZBGet using iOS - rvdet - 02-12-2012 08:14 PM

I changed the download dir into another Blackhole-dir.

So one dir for this app and couch potato / sickbeard.

Perfect, perfect, perfect, perfect !!!!


RE: Script to send NZB(url) to NZBGet using iOS - VincentB1980 - 02-24-2012 12:32 AM

Just a tip, I upgraded my nzbget and noticed the NZB Upload tool was not working properly anymore.
If this happens to you telnet to your device, then:

cd /share/.nzbget/nzb
ls -la

Look at the output, if first line looks like this:
drwxr-xr-x 3 nmt nmt 4096 Feb 24 00:17 .

This means that the nzb directory has no write permission to all users (w is missing). This permission is necessary for the script to work well.
To add this permission type the following command:
chmod a+w .

This should fix it. Type ls -la again and it should look like this now:
drwxrwxrwx 3 nmt nmt 4096 Feb 24 00:17 .

Good luck, and thanks to Max again for the great script!

Cheers,
Vincent