nzbmatrix.com/nzbs.org/newznab automated movie downloader

Come up with a useful post-processing script? Share it here!
jdwoods
Newbie
Newbie
Posts: 7
Joined: January 25th, 2011, 12:07 pm

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by jdwoods »

binhex wrote:
jdwoods wrote: I looked through the thread and couldnt find an answer.

Any way to install this using source code on OS X?
Please advise.
if you can run python on OS X (which you can) then you can run the script, im afraid i have zero experience of apple os's, maybe somebody else might be able to give you the exact bits and piecies you need to get it running.

a good start is probably to update your version of python as i think you will be running an older version of python by default (already part of OS X), the script is based on python 2.x so my adivse would be to update to the latest version (currently 2.7.1)

http://www.python.org/download/releases/2.7.1/

the only other python module you will need is mechanize:-

http://wwwsearch.sourceforge.net/mechan ... nload.html


i hope this gives you a good start, like i say im pretty sure its possible as python is cross platform
BinHex, First of all - thank you. I installed mechanize. Already had python 2.7.1 in.
I entered in all the values for config.ini file.
I opened terminal and wrote the following:
python /path/to/auto movie downloader.py
I received the following error:
path/to/Python: can't open file 'auto': [Errno 2] No such file or directory

If I open the .py with Python Launcher I receive the following output in terminal:
cd '/Path/to/AMD1.3.3/' && '/usr/local/bin/pythonw'  '/Path/to/AMD1.3.3/auto movie downloader.py'  && echo Exit status: $? && exit 1
cpe-76-171-29-155:~ user$ cd '/Path/to/AMD1.3.3/' && '/usr/local/bin/pythonw'  '/Path/to/AMD1.3.3/auto movie downloader.py'  && echo Exit status: $? && exit 1


Any input on this?
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by binhex »

jdwoods wrote:
binhex wrote:
jdwoods wrote: I looked through the thread and couldnt find an answer.

Any way to install this using source code on OS X?
Please advise.
if you can run python on OS X (which you can) then you can run the script, im afraid i have zero experience of apple os's, maybe somebody else might be able to give you the exact bits and piecies you need to get it running.

a good start is probably to update your version of python as i think you will be running an older version of python by default (already part of OS X), the script is based on python 2.x so my adivse would be to update to the latest version (currently 2.7.1)

http://www.python.org/download/releases/2.7.1/

the only other python module you will need is mechanize:-

http://wwwsearch.sourceforge.net/mechan ... nload.html


i hope this gives you a good start, like i say im pretty sure its possible as python is cross platform
BinHex, First of all - thank you. I installed mechanize. Already had python 2.7.1 in.
I entered in all the values for config.ini file.
I opened terminal and wrote the following:
python /path/to/auto movie downloader.py
I received the following error:
path/to/Python: can't open file 'auto': [Errno 2] No such file or directory

If I open the .py with Python Launcher I receive the following output in terminal:
cd '/Path/to/AMD1.3.3/' && '/usr/local/bin/pythonw'  '/Path/to/AMD1.3.3/auto movie downloader.py'  && echo Exit status: $? && exit 1
cpe-76-171-29-155:~ user$ cd '/Path/to/AMD1.3.3/' && '/usr/local/bin/pythonw'  '/Path/to/AMD1.3.3/auto movie downloader.py'  && echo Exit status: $? && exit 1


Any input on this?
ok the first error your getting looks to be due to the fact the script name has spaces in it, thus its looking for the file "auto" and not "auto movie downloader". in windows you get around this by putting the entire filename in quotes, i dunno if the same is true of OS X, you could always remove the space or just shorten the name of the script as a workaround.

the error you get when using the python launcher seems to make little sense to me, im not sure what thats really doing but by the look of it it looks like its not the correct method to run a script.

binhex.
jdwoods
Newbie
Newbie
Posts: 7
Joined: January 25th, 2011, 12:07 pm

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by jdwoods »

You were indeed correct. I used quotation marks for the .py file and it did not return any errors.
The problem is, it doesn't return ANYTHING. I get no notification that anything is going on and when I try to close the terminal window, I receive the following error:
Closing this window will terminate the running processes: login, bash, Python, ping.
Which is sort of a good thing. It shows that the module is running but it doesnt seem like anything is being accomplished.
Are you aware of anybody who has successfully run this on a Mac? I am sure there has to be a way with a little tweaking...
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by binhex »

jdwoods wrote: You were indeed correct. I used quotation marks for the .py file and it did not return any errors.
The problem is, it doesn't return ANYTHING. I get no notification that anything is going on and when I try to close the terminal window, I receive the following error:
Closing this window will terminate the running processes: login, bash, Python, ping.
Which is sort of a good thing. It shows that the module is running but it doesnt seem like anything is being accomplished.
Are you aware of anybody who has successfully run this on a Mac? I am sure there has to be a way with a little tweaking...
hi, i believe your running into this issue, taken from a earlier post somebody made regards running the script on linux:-
Also had to change the 'ping' command to

pingtest = "ping -c 1 www.google.com"

without the -c switch in linux it will just ping forever.

thanks for the script, I can tell you put alot of work into this.
Gotcha007
Newbie
Newbie
Posts: 11
Joined: January 25th, 2011, 4:06 pm
Contact:

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by Gotcha007 »

For the ones who are interrested I started a Auto Movie Downloader Revisited : http://forum.xbmc.org/showthread.php?p= ... post705519

This new project has for goal to mainly implement a GUI interface for it as for the moment is only running in a command line.

TODO
- Add an History log for what has been done during the last session of check for new movie available.
- Add some more info into the History Log like IMDB rating of the movie, genre,...
- Integration into Media Center Page (http://forum.xbmc.org/showthread.php?t=83304) like for example CouchPotato to configure the module and see the last history.
- Trigger an even to XBMC when a file has been selected to download and sent to SABnzbd
- Possibility to send event via Prowl and Growl

Any suggestions are welcome.
Last edited by Gotcha007 on January 27th, 2011, 1:06 pm, edited 1 time in total.
[url=http://"http://sharethe.tv/gotcha007"]Image[/url][url=http://"http://forum.xbmc.org/showthread.php?p=707931&posted=1#post707931"]Image[/url]
Gotcha007
Newbie
Newbie
Posts: 11
Joined: January 25th, 2011, 4:06 pm
Contact:

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by Gotcha007 »

Added into TODO : - Option to download directly without intervention or put the movie in a waiting list to be processed manually
[url=http://"http://sharethe.tv/gotcha007"]Image[/url][url=http://"http://forum.xbmc.org/showthread.php?p=707931&posted=1#post707931"]Image[/url]
jdwoods
Newbie
Newbie
Posts: 7
Joined: January 25th, 2011, 12:07 pm

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by jdwoods »

Binhex,
Here's the new message:

Script Finished Created By Binhex

I think it worked. I see no evidence of any NZB's having been downloaded to the selected directories though. I will double check the config file to make sure the settings are correct.
Any suggestions?
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by binhex »

jdwoods wrote: Binhex,
Here's the new message:

Script Finished Created By Binhex

I think it worked. I see no evidence of any NZB's having been downloaded to the selected directories though. I will double check the config file to make sure the settings are correct.
Any suggestions?
yep looks like the script did run, which at least shows all required modules are found and loaded, its difficult for me to say exactly why you didnt get any results back without seeing your config.ini, but my initial thought is that it maybe a misconfigured search criteria, please try a basic search critera first and see if this gives you any results back.

if you still get no results then pm me your config.ini with any usernames/passwords removed and i will take a look.

binhex.
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by binhex »

hi jdwoods, ive taken a look at your config.ini, here are your problem areas:-

these should not be the same path, the nzb_dir contains archived nzbs already processed by sabnzbd, the watched folder is used to watch for incoming nzbs by sabnzbd

watch_dir="/Users/username/Downloads"
nzb_dir="/Users/username/Downloads"


this is the main problem:-

nzbmatrix_search="%2B720p+%2Bbluray+-hdtv+%2BDVDRip+%2BDVDR+%2BDivx+%2BH264+%2BXvid+%2B1080p+-tc+-ts+-rc+-line+-telesync+-telecine+-3d*+-dtheater"

what your trying to match on is a movie with 720p and bluray and dvdrip and divx and h264 and xvid and 1080p in the post name, obviously this is never going to match.

if you seperate your terms with "+" only then it acts as a OR function (all search terms , also you need to modify the category your searching against to "movies-all", the below should work:-

nzbmatrix_cat="movies-all"
nzbmatrix_search="720p+bluray+dvdrip+dvdr+divx+h264+xvid+1080p+-CAM+-tc+-ts+-rc+-line+-telesync+-telecine+-3d*+-dtheater+-hdtv"

this needs to be changed as it wont work on a unix/linux based os:-

#put your own notification message process below for error logging
notifylog="cmd /c msg console /TIME:43200 Auto Movie Downloader Script Error, Check Logs"

you can nullify this by removing everything apart from the quotes if you dont want to bother with any sort of visual notification:-

notifylog=""
blaine12
Newbie
Newbie
Posts: 3
Joined: February 2nd, 2011, 10:50 am

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by blaine12 »

This program looks awesome! I just finished editing the config file. When I attempt to run the executable directly or by starting my scheduled task, a blank dialog box opens for about 60 seconds, and then closes. In the task scheduler I get a last run result of 0xFF. No nzbs are added to my download queue either. I'm on Windows Home Server "Vail". Any thoughts? Is there a log file somewhere?

Thanks!
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by binhex »

blaine12 wrote: This program looks awesome! I just finished editing the config file. When I attempt to run the executable directly or by starting my scheduled task, a blank dialog box opens for about 60 seconds, and then closes. In the task scheduler I get a last run result of 0xFF. No nzbs are added to my download queue either. I'm on Windows Home Server "Vail". Any thoughts? Is there a log file somewhere?

Thanks!
hi blaine12, my advise is drop to a command prompt and run the executable, you will then see any error messages that pop up. also take a look at the folder you specified in your config.ini for entry "errorlog_dir" if there any errors it should write them to a text file in that folder.
blaine12
Newbie
Newbie
Posts: 3
Joined: February 2nd, 2011, 10:50 am

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by blaine12 »

binhex wrote:
blaine12 wrote: This program looks awesome! I just finished editing the config file. When I attempt to run the executable directly or by starting my scheduled task, a blank dialog box opens for about 60 seconds, and then closes. In the task scheduler I get a last run result of 0xFF. No nzbs are added to my download queue either. I'm on Windows Home Server "Vail". Any thoughts? Is there a log file somewhere?

Thanks!
hi blaine12, my advise is drop to a command prompt and run the executable, you will then see any error messages that pop up. also take a look at the folder you specified in your config.ini for entry "errorlog_dir" if there any errors it should write them to a text file in that folder.
Thanks for the quick reply! It looks like some of my file paths were incorrect. I've gotten that straightened out, but I noticed that file paths in your config file had two \ marks between folders, where as mine have one. Is that an issue? Now when I run from a command prompt I am getting:

---------------------------
Script Finished Created By Binhex

The problem now is that no nzbs are being downloaded and I assume there is supposed to be some type of other activity happening. I checked the logs folder I specified, and the only output is a blank cache log. No other logs are created.

Thank you so much for your help, I'm really looking forward to getting this going.
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by binhex »

blaine12 wrote:
binhex wrote:
blaine12 wrote: This program looks awesome! I just finished editing the config file. When I attempt to run the executable directly or by starting my scheduled task, a blank dialog box opens for about 60 seconds, and then closes. In the task scheduler I get a last run result of 0xFF. No nzbs are added to my download queue either. I'm on Windows Home Server "Vail". Any thoughts? Is there a log file somewhere?

Thanks!
hi blaine12, my advise is drop to a command prompt and run the executable, you will then see any error messages that pop up. also take a look at the folder you specified in your config.ini for entry "errorlog_dir" if there any errors it should write them to a text file in that folder.
Thanks for the quick reply! It looks like some of my file paths were incorrect. I've gotten that straightened out, but I noticed that file paths in your config file had two \ marks between folders, where as mine have one. Is that an issue? Now when I run from a command prompt I am getting:

---------------------------
Script Finished Created By Binhex

The problem now is that no nzbs are being downloaded and I assume there is supposed to be some type of other activity happening. I checked the logs folder I specified, and the only output is a blank cache log. No other logs are created.

Thank you so much for your help, I'm really looking forward to getting this going.

hi blain12, firstly yes you will need the double backslashes in the path name, failure to do this will probably result in errors in the script. the issue with it not returning any results is probably due to a misconfigured nzbmatrix/nzbs search criteria in your config.ini, can you please post the "xxxx_search=" line from config.ini where xxxx is your choosen index site and i will take a look.

binhex.
Gotcha007
Newbie
Newbie
Posts: 11
Joined: January 25th, 2011, 4:06 pm
Contact:

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by Gotcha007 »

Gotcha007 wrote: For the ones who are interrested I started a Auto Movie Downloader Revisited : http://forum.xbmc.org/showthread.php?p= ... post705519

This new project has for goal to mainly implement a GUI interface for it as for the moment is only running in a command line.

TODO
- Add an History log for what has been done during the last session of check for new movie available.
- Add some more info into the History Log like IMDB rating of the movie, genre,...
- Integration into Media Center Page (http://forum.xbmc.org/showthread.php?t=83304) like for example CouchPotato to configure the module and see the last history.
- Trigger an even to XBMC when a file has been selected to download and sent to SABnzbd
- Possibility to send event via Prowl and Growl

Any suggestions are welcome.
Little update :

A screenshot of my progress for the GUI
Still a bunch of work to do but I'm nearly to release an alpha version.

Image
[url=http://"http://sharethe.tv/gotcha007"]Image[/url][url=http://"http://forum.xbmc.org/showthread.php?p=707931&posted=1#post707931"]Image[/url]
binhex
Sr. Member
Sr. Member
Posts: 470
Joined: December 5th, 2008, 11:54 am

Re: nzbmatrix.com/nzbs.org automated movie downloader

Post by binhex »

new version released 1.3.4, big code tidy up so watch the config.ini entries as there has been some fairly major renaming going on, should be last major tweak to the config.ini.

if any bugs found please let me know.

binhex.
Post Reply