grab it here:
http://slypheed.com/files/vcddb/importer.php.txt
How to use in a nutshell:
- 1. Rename 'importer.php.txt' to 'importer.php'
2. Place 'importer.php' in your vcddb site root.
3. Create a "movies.txt" in your vcddb site root (see below for example of this).
4. In your web browser go to http://<mydomain.com>/<vcddb_directory>/importer.php
5. Depending on how big your list is, wait a while (for ~800 movies it took an hour or two)
'movies.txt' format:
grab example file from:
http://slypheed.com/files/vcddb/movies.txt
Basically just one movie name per line in a plain text file.
Other things:
My version of vcddb (0.991) had errors in the regular expressions for the year and poster.
Fix it by either:
First Method:
- 1. grab my patch file from here:
http://slypheed.com/files/vcddb/VCDFetch_imdb.php.diff
2. copy it to <vcddb_dir>/classes/fetch/
3. cd to that directory (i.e. "cd /var/www/vcddb/classes/fetch")
4. run this command from the terminal (no quotes):
"patch -p0 VCDFetch_imdb.php < VCDFetch_imdb.php.diff"
- 1. replace your classes/fetch/VCDFetch_imdb.php with this one: http://slypheed.com/files/vcddb/VCDFetch_imdb.php
Notes:
- 1. This is a total hack...I basically traced through how vcddb fetched and inserted new movies and copied/hacked that code into this script -- it works quite well for me but YMMV.
2. It is ONLY for IMDB -- feel free to hack it up to work with others though :)
3. It will ocassionally grab the wrong movie -- this is because it assumes that the first result fetched from the list of matching movies is the correct one. -- In my experience this is true about 95% of the time.
4. It will ocassionally fail (i.e. the script will stop and you'll have to start it again)
If this happens:
a. either restart it (it'll skip any movies already added -- but will still take the time to fetch them from IMDB)
b. Simply look at the script output in your browser -- see the last one added -- and trim your movies.txt file and start again (it goes sequentially through the file).
Feel free to post issues you find and/or feature requests. No promises though =)
(NOTE: I have no plans whatsoever to change it to import from anything besides plain text files -- if you have it in excel I'm sure you can figure out how to convert it to the simple one-movie-name-per-line movies.txt format)
anyway, hope someone finds it useful and let me know if anything is totally screwed up.
(oh and make sure allow_url_fopen is set to ON in your php.ini -- curl doesn't seem to work for image retrieval)
Suggestion for the forum:
As VCD-DB appears to be abandoned by its creators -- if anyone still has admin on this forum -- it might be useful to setup a "patches/additions" Section -- as well as setting up a new source control repository.
One more thing -- I avoid Windoze like the plague, so feel free to ask, but...
--slypheed
