Skip to content

Instantly share code, notes, and snippets.

@kdt
Created January 12, 2012 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdt/1599889 to your computer and use it in GitHub Desktop.
Save kdt/1599889 to your computer and use it in GitHub Desktop.
#!/bin/bash
html="movie-index.html"
echo "<html><head></head><body>">"$html"
for movie in *.avi; do
echo "--> $movie"
name=$(basename "$movie" .avi)
make-thumb.sh -i "$movie"
echo "<h1><a href=\"http://www.imdb.com/find?q=$name&s=tt\">$name</a> [<a href=\"$movie\">Play</a>]</h1>">>"$html"
echo "<p><img src=\"$movie.jpg\"/></p>">>"$html"
done
echo "</body></html>">>"$html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment