Gosu.pl

Author - contact

Cezary Tomczak:

When you launch the script, a progress window will appear

When you launch the script, a progress window will appear

A list of movies generated in D:/movies/ directory

A list of movies generated in D:/movies/ directory

Generate a list of movies on a computer - movies.js (windows script)

This script makes a list of movies in a directory, downloads info about the movie from imdb.com (poster, rating, genre, description, cast) and writes the result to movies.html. You can easily play movies from the list with just 1 click (firefox).

No installation is required. This script uses Windows Script Host technology, which is distributed and installed by default on Windows.

This script is free for private use.

How to use

  1. Download movies-en.zip, extract it to a directory where you keep the movies.
  2. Run movies.js (or movies.wsh)

Download the latest version

Version 1.1.0: movies-en.zip [36 KB] (2010-01-28)

Changes in 1.1.0

Changes in 1.0.92

Changes in 1.0.91

Changes in 1.0.8

Changes in 1.0.6

Changes in 1.0.4

Changes in 1.0.3

Changes in 1.0.2

Configuration file movies.txt

In order to generate the list from different directories/drives, create movies.txt file, and put there paths to directories / drives / network folders. An example config file:

D:\movies\
G:\Downloads\
F:\
\\john\movies\

-- This is a comment, it starts with "-" (minus).
-- If some drives/network folders aren't accessible comment it.

--\\kevin\movies\

Supplying only a drive path is an easy way, but whenever possible try to write the full path to movies directory. Scanning a drive with lots of files can take a while (for example scanning 20 thousands of files should take about one minute).

More info

Searching in: title, genre, description, cast. You can exclude words, ex. search: "comedy romance -drama".

You can play movies from the list with one click. When clicking on a movie, associate opening .avi with your favorite player and check the option to always use this application. If option of remembering this setting is blocked on firefox, you can edit mimetypes.rdf that is in you firefox profile (more info at the end of this page).

The script tries to guess the name of the movie from the file name or directory (only when it contains one movie).

If the directory contains only one movie, it can read any .nfo files to get the imdb link. If the script fails to guess the name of the movie, you can manually create an .nfo file (for example movie.nfo) and put an imdb link there (ex. imdb.com/title/tt123456).

Editing mimetypes.rdf

Example path: firefox/profile/abc/mimetypes.rdf
More info about editing this file: http://kb.mozillazine.org/MimeTypes.rdf
<RDF:li RDF:resource="urn:mimetype:video/avi"/>
<RDF:li RDF:resource="urn:mimetype:application/vnd.rn-realmedia-vbr"/>

-- --

<RDF:Description RDF:about="urn:mimetype:video/avi"
                   NC:fileExtensions="avi"
                   NC:description="AVI"
                   NC:useSystemDefault="true"
                   NC:value="video/avi"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:video/avi"/>
</RDF:Description>

<RDF:Description RDF:about="urn:mimetype:application/vnd.rn-realmedia-vbr"
                   NC:fileExtensions="rmvb"
                   NC:description="RMVB"
                   NC:useSystemDefault="true"
                   NC:value="application/vnd.rn-realmedia-vbr"
                   NC:editable="true">
    NC:handlerProp RDF:resource="urn:mimetype:handler:application/vnd.rn-realmedia-vbr"/>
</RDF:Description>