Kodi Community Forum
AutoMovies - (Fully) Automatic movie downloader - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: AutoMovies - (Fully) Automatic movie downloader (/showthread.php?tid=107388)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


- UnisonRuss - 2011-08-21

I will absolutely test this out once it's on Mac OS X! Sounds terrific... absolutely love the idea of it automatically adding the top ten in the IMDB box office Big Grin


- j1nx - 2011-08-21

TheStretchedElf Wrote:I still can't get this to run. I've installed the x86 Java from the link above. Any other help? Turok?

1) Edit the AutoMovies.bat
2) Add the following line'
Code:
pause
So the full content will be
Code:
java -cp lib/*;conf/ -javaagent:lib\openjpa-all-2.1.0.jar apps.automovies.Main
pause
3) Run the BAT file
4) Paste the full output of the CMD box in this thread for Turok to help you out.


- TheStretchedElf - 2011-08-21

j1nx Wrote:1) Edit the AutoMovies.bat
2) Add the following line'
Code:
pause
So the full content will be
Code:
java -cp lib/*;conf/ -javaagent:lib\openjpa-all-2.1.0.jar apps.automovies.Main
pause
3) Run the BAT file
4) Paste the full output of the CMD box in this thread for Turok to help you out.

C:\Program Files\AutoMovies>java -cp lib/*;conf/ -javaagent:lib\openjpa-all-2.1.
0.jar apps.automovies.Main
Error opening zip file or JAR manifest missing : lib\openjpa-all-2.1.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument

C:\Program Files\AutoMovies>pause
Press any key to continue . . .

Edit: All fixed now. Seems quite a few files were missing so I unzipped again directly into the folder and I seem to be up and running now. Out of interest, is the cmd window meant to remain open?


- turok - 2011-08-21

j1nx/fryster, thanks for the contributions!

TheStretchedElf, glad you got it running -- the cmd window is supposed to stay open Smile


- TheStretchedElf - 2011-08-21

Tried to import import my movies and got an error message. There is nothing in any of the logs in the gui but at the bottom of the log text file in the automovies log folder I see this:

Quote:INFO 2011-08-21 12:14:29,225 apps.automovies.tools.MovieImporter [Thread-23] - Scanning directory: Surrogates (2009)
INFO 2011-08-21 12:14:29,278 apps.automovies.tools.MovieImporter [Thread-23] - Scanning directory: .actors
INFO 2011-08-21 12:14:29,337 apps.automovies.tools.MovieImporter [Thread-23] - Scanning directory: extrathumbs
INFO 2011-08-21 12:14:29,338 apps.automovies.tools.MovieImporter [Thread-23] - Scanning file: Surrogates (2009) [720P].mkv
INFO 2011-08-21 12:14:31,154 apps.automovies.tools.MovieImporter [Thread-23] - Movie found! Surrogates
INFO 2011-08-21 12:14:31,154 apps.automovies.tools.MovieImporter [Thread-23] - Scanning directory: System Volume Information
ERROR 2011-08-21 12:14:31,155 apps.automovies.tools.MovieImporter [Thread-23] - Error import movie folder
java.lang.NullPointerException
at apps.automovies.tools.MovieImporter.scanDirectory(MovieImporter.java:62)
at apps.automovies.tools.MovieImporter.scanDirectory(MovieImporter.java:65)
at apps.automovies.tools.MovieImporter.run(MovieImporter.java:49)

I also have a couple of questions:
  • In Settings>Downloading>Download Settings>Frequency to Download, this is currently set at 28800. What units does the number refer to, i.e. seconds, minutes? And does this indicate how often AM will look for matches and download them?
  • In Settings>Post-processing does "download directory" refer to the directory SABNzbd downloads my movies to?

I've also seen this error in the log after adding a movie. The movie failed to download despite matches found.

Quote:ERROR 2011-08-21 13:27:08,283 apps.automovies.MovieDownloader [Thread-26] - Error downloading Match [The Thirteenth Floor 1999 DVDRip XviD SChiZO]
java.net.UnknownHostException: http
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.http://www.http.HttpClient.openServer(Unknown Source)
at sun.net.http://www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.http://www.http.HttpClient.New(Unknown Source)
at sun.net.http://www.http.HttpClient.New(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at apps.automovies.util.Util.getContentFromURL(Util.java:53)
at apps.automovies.MovieDownloader.download(MovieDownloader.java:182)
at apps.automovies.MovieDownloader.searchForMovie(MovieDownloader.java:152)
at apps.automovies.MovieDownloader.run(MovieDownloader.java:44)
DEBUG 2011-08-21 13:27:08,287 apps.automovies.MovieDownloader [Thread-26] - Match [The 13th Floor 1999 WS DVDRip XviD QiX] skipped because: Better-quality match found during same search [The Thirteenth Floor 1999 DVDRip XviD SChiZO]
DEBUG 2011-08-21 13:27:08,302 apps.automovies.MovieDownloader [Thread-26] - Match [The 13th Floor 1999 WS DVDRip XviD QiX] skipped because: Better-quality match found during same search [The Thirteenth Floor 1999 DVDRip XviD SChiZO]
DEBUG 2011-08-21 13:27:08,306 apps.automovies.MovieDownloader [Thread-26] - Match [The Thirteenth Floor 1999 PRIVATE DVDRip XviD SChiZO] skipped because: Better-quality match found during same search [The Thirteenth Floor 1999 DVDRip XviD SChiZO]
DEBUG 2011-08-21 13:27:08,311 apps.automovies.MovieDownloader [Thread-26] - Match [The Thirteenth Floor 1999 Dvdrip Xvid OlFa] skipped because: Better-quality match found during same search [The Thirteenth Floor 1999 DVDRip XviD SChiZO]



- turok - 2011-08-21

I made a change to the log format, which probably explains why the logs aren't showing in the web app, so I'll make a note to fix that.

Yeah, the 'frequency to download' is how often (in seconds) we look for matches and try to download them. Download directory *only* matters if you're not using a post-processing script in SABnzbd. I'd recommend setting this up as there are 2 slight changes you need to make in your Renamer.bat file (see my post on pg 7). The renamer/post-processor doesn't run on a schedule right now, but you can always schedule Renamer.bat yourself if you want. It'll check the download directory that you've specified for completed downloads.

Regarding the error in your log while trying to download a match, I need to add some 'help' to the settings area. In this case, make sure your SABnzbd host is in the format:
Code:
localhost:8080
I'm guessing it's in another format, which is causing the exception.

Hope that helps! Thanks for the testing/feedback Smile


- TheStretchedElf - 2011-08-22

I changed it to localhost:8080 so if that was causing a problem it should be avoided now. However, I must assume there was another problem also as I have still not downloaded anything. My logs seem to be full of info now rather than being blank as they were before. Here is an example:

Quote:ERROR 2011-08-22 18:25:53,422 apps.automovies.MovieDownloader [Thread-21] - Error downloading Match [The Thirteenth Floor 1999 DVDRip XviD SChiZO]
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.http://www.http.HttpClient.openServer(Unknown Source)
at sun.net.http://www.http.HttpClient.openServer(Unknown Source)
at sun.net.http://www.http.HttpClient.(Unknown Source)
at sun.net.http://www.http.HttpClient.New(Unknown Source)
at sun.net.http://www.http.HttpClient.New(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.http://www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at apps.automovies.util.Util.getContentFromURL(Util.java:53)
at apps.automovies.MovieDownloader.download(MovieDownloader.java:182)
at apps.automovies.MovieDownloader.searchForMovie(MovieDownloader.java:152)
at apps.automovies.MovieDownloader.run(MovieDownloader.java:44)



- turok - 2011-08-22

Do you have a username/password set for SABnzbd? I just realized that I forgot to add the authentication piece (since I only use an API key). I'll go ahead and add that...


- TheStretchedElf - 2011-08-22

turok Wrote:Do you have a username/password set for SABnzbd? I just realized that I forgot to add the authentication piece (since I only use an API key). I'll go ahead and add that...

No, I only use the api myself.


- turok - 2011-08-23

Hmm, are you sure that SABnzbd is running at localhost:8080? I would try dropping that into your browser to make sure it is. The error you're see is usually thrown because there is no service listening on the specified host/port.


- TheStretchedElf - 2011-08-23

Yes, it's definitely running on localhost:8080 - I've also recopied & pasted the api from SAB to AM just to be sure. Is there any chance that AM isn't saving the revised format in the settings and still trying to access http://localhost:8080/ instead of just localhost:8080?


- getafix - 2011-08-23

I am totally new to this whole thing. Can someone please explain or is there a tutorial on how to set this up.

Regards


- j1nx - 2011-08-23

TheStretchedElf Wrote:Yes, it's definitely running on localhost:8080 - I've also recopied & pasted the api from SAB to AM just to be sure. Is there any chance that AM isn't saving the revised format in the settings and still trying to access http://localhost:8080/ instead of just localhost:8080?

It is all saved into the config file within the "conf" directory.

1) Go into the "conf" directory
2) Open the file "config.properties" with a text editor (wordpad in windows I guess)
3) Search for the line;
Code:
sabnzbd.host=...................

Now I haven't downloaded a single file yet, but my line looks like this;
Code:
sabnzbd.host=192.168.254.254\:9000
Now this back-slash might be there because the string saved from within the webconfig went throught some "html save character" function. Try deleting it, if it works, then Turok need to investigate the saving function for this admentment of back-slash.


@getafix

If you can't get it to work, it is probably better to wait for a more official release. This version is very premature and more of an initial test/teaser.


- Lunatixz - 2011-08-23

Pretty cool, but I was wondering if there is a command to keep the console and webpage from loading on start...


- turok - 2011-08-23

j1nx Wrote:Now this back-slash might be there because the string saved from within the webconfig went throught some "html save character" function. Try deleting it, if it works, then Turok need to investigate the saving function for this admentment of back-slash.

The slashes are added in the saving process and are completely normal. The config works with or without a slash there. Here's what mine looks like:
Code:
sabnzbd.host=localhost\:8080

@getafix, j1nx is right -- this is an early release and although I'm planning on getting some detailed setup instructions together soon, the most details you'll find right now are on pages 1 and 7.