[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
Script to send NZB(url) to NZBGet using iOS
08-10-2011, 04:21 PM (This post was last modified: 08-10-2011 04:39 PM by mrmaximum.)
Post: #1
Tongue Script to send NZB(url) to NZBGet using iOS
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
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 6 users say Thank You to mrmaximum for this post
08-10-2011, 09:08 PM (This post was last modified: 08-10-2011 09:38 PM by rvdet.)
Post: #2
RE: Script to send NZB(url) to NZBGet using iOS
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 !

C200 and A200 both with 1,5 TB Samsung Green, wired 100 Mb LAN. I love those Apps: PWRC, UZG.
(a WD caviar green 500Gb gave hang-ups with the C200).

Sony 42W5500 with Sony 5.1 Home theatre setup and LG 37LD450.
Three External HDD's of 350 Gb (1) and 500 Gb (2) on a different physical location for extra Back-Up.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to rvdet for this post
08-10-2011, 11:06 PM
Post: #3
RE: Script to send NZB(url) to NZBGet using iOS
(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?
Find all posts by this user
Add Thank You Quote this message in a reply
08-11-2011, 12:08 PM
Post: #4
RE: Script to send NZB(url) to NZBGet using iOS
(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?

C200 and A200 both with 1,5 TB Samsung Green, wired 100 Mb LAN. I love those Apps: PWRC, UZG.
(a WD caviar green 500Gb gave hang-ups with the C200).

Sony 42W5500 with Sony 5.1 Home theatre setup and LG 37LD450.
Three External HDD's of 350 Gb (1) and 500 Gb (2) on a different physical location for extra Back-Up.
Find all posts by this user
Add Thank You Quote this message in a reply
08-11-2011, 12:37 PM
Post: #5
RE: Script to send NZB(url) to NZBGet using iOS
(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.
Find all posts by this user
Add Thank You Quote this message in a reply
08-11-2011, 04:02 PM
Post: #6
RE: Script to send NZB(url) to NZBGet using iOS
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!
Find all posts by this user
Add Thank You Quote this message in a reply
08-13-2011, 08:23 PM
Post: #7
RE: Script to send NZB(url) to NZBGet using iOS
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.

C200 and A200 both with 1,5 TB Samsung Green, wired 100 Mb LAN. I love those Apps: PWRC, UZG.
(a WD caviar green 500Gb gave hang-ups with the C200).

Sony 42W5500 with Sony 5.1 Home theatre setup and LG 37LD450.
Three External HDD's of 350 Gb (1) and 500 Gb (2) on a different physical location for extra Back-Up.
Find all posts by this user
Add Thank You Quote this message in a reply
08-13-2011, 08:28 PM
Post: #8
RE: Script to send NZB(url) to NZBGet using iOS
(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
Find all posts by this user
Add Thank You Quote this message in a reply
08-14-2011, 10:13 PM
Post: #9
RE: Script to send NZB(url) to NZBGet using iOS
grtz from Leidschendam!

C200 and A200 both with 1,5 TB Samsung Green, wired 100 Mb LAN. I love those Apps: PWRC, UZG.
(a WD caviar green 500Gb gave hang-ups with the C200).

Sony 42W5500 with Sony 5.1 Home theatre setup and LG 37LD450.
Three External HDD's of 350 Gb (1) and 500 Gb (2) on a different physical location for extra Back-Up.
Find all posts by this user
Add Thank You Quote this message in a reply
10-06-2011, 11:14 PM
Post: #10
RE: Script to send NZB(url) to NZBGet using iOS
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
Find all posts by this user
Add Thank You Quote this message in a reply
10-25-2011, 05:44 PM
Post: #11
RE: Script to send NZB(url) to NZBGet using iOS
works like a charm still.

C200 and A200 both with 1,5 TB Samsung Green, wired 100 Mb LAN. I love those Apps: PWRC, UZG.
(a WD caviar green 500Gb gave hang-ups with the C200).

Sony 42W5500 with Sony 5.1 Home theatre setup and LG 37LD450.
Three External HDD's of 350 Gb (1) and 500 Gb (2) on a different physical location for extra Back-Up.
Find all posts by this user
Add Thank You Quote this message in a reply
11-02-2011, 11:52 PM
Post: #12
RE: Script to send NZB(url) to NZBGet using iOS
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.
Find all posts by this user
Add Thank You Quote this message in a reply
12-23-2011, 02:03 AM
Post: #13
RE: Script to send NZB(url) to NZBGet using iOS
(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
Find all posts by this user
Add Thank You Quote this message in a reply
02-12-2012, 08:14 PM
Post: #14
RE: Script to send NZB(url) to NZBGet using iOS
I changed the download dir into another Blackhole-dir.

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

Perfect, perfect, perfect, perfect !!!!

C200 and A200 both with 1,5 TB Samsung Green, wired 100 Mb LAN. I love those Apps: PWRC, UZG.
(a WD caviar green 500Gb gave hang-ups with the C200).

Sony 42W5500 with Sony 5.1 Home theatre setup and LG 37LD450.
Three External HDD's of 350 Gb (1) and 500 Gb (2) on a different physical location for extra Back-Up.
Find all posts by this user
Add Thank You Quote this message in a reply
02-24-2012, 12:32 AM
Post: #15
RE: Script to send NZB(url) to NZBGet using iOS
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
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Star NZBGet 9.0/10.0 discussion hugbug 473 38,334 05-21-2013 06:45 PM
Last Post: say170
  Can't save NZBGet Web Interface settings jurjongo 0 473 04-15-2013 09:57 PM
Last Post: jurjongo
  NZBGet download x pars instead of one/all/none shazada 0 470 04-07-2013 03:46 PM
Last Post: shazada
  NZBGet on the PCH/NMT Manual and F.A.Q. Philos 147 176,305 03-10-2013 11:33 AM
Last Post: blobe
  transmission wont upload url mikk 10 2,595 03-06-2013 11:14 PM
Last Post: SatRun
  auto unrar script giovan39 0 508 02-15-2013 07:57 PM
Last Post: giovan39
  NZBGET postprocess to specified folder Goldrolly 2 1,067 02-15-2013 06:09 PM
Last Post: jhmiller
  nzbget config giovan39 0 665 02-15-2013 11:27 AM
Last Post: giovan39
  nzbget unrar script popcorn a400 giovan39 0 761 02-15-2013 08:17 AM
Last Post: giovan39
Question Keep the Original NZBget webui? jhmiller 5 853 01-30-2013 02:39 PM
Last Post: hugbug

Forum Jump: