My favorites | Sign in
Project Home Issues Source
Project Information
Members

metadata for files on the command line

  • retrieve
  • store
  • list
  • query

metals

metals for movies

As of 2010 metals works for movie files:

  • retrieves and stores movie metadata from imdb to local sqlite database
  • lists movies in directory by metadata
  • lists all movies in local database
  • movie file--metadata mapping survives file renaming/moving:
    • key is inode number of file
    • additionally storing hash as used in opensubtitles.org

Usage example

user@host:~/Vidoes$ ls
-rw-r--r--   1 user user  928670754 2010-10-24 00:20 big_buck_bunny_1080p_surround.avi


user@host:~/Videos$ metals
Adding big buck bunny   http://www.imdb.com/title/tt1254207/ Big Buck Bunny (2008) - IMDb ...
Big Buck Bunny (2008, Netherlands) [7.0, Animation, Short, Comedy] - big_buck_bunny_1080p_surround.avi


user@host:~/Videos$ metals --long
Big Buck Bunny (2008, Netherlands) [7.0, Animation, Short, Comedy] - big_buck_bunny_1080p_surround.avi
'Big' Buck wakes up in his rabbit hole, only to be pestered by three critters, Gimera, Frank and Rinky. When Gimera kills a butterfly, Buck decides on a payback Predator-style 


user@host:~/Videos$ metals --sel rytc
7.0   2008   Big Buck Bunny   Netherlands


user@host:~/Videos$ metals --sel Htyr
dc4ca2332057f2f9   Big Buck Bunny   2008   7.0


user@host:~/Videos$ metals --any rabbit --long
Big Buck Bunny (2008, Netherlands) [7.0, Animation, Short, Comedy] - big_buck_bunny_1080p_surround.avi /home/david/Videos
'Big' Buck wakes up in his rabbit hole, only to be pestered by three critters, Gimera, Frank and Rinky. When Gimera kills a butterfly, Buck decides on a payback Predator-style 


user@host:~/Videos$ metals --dry 'some movie name'

Get

  • At least in Ubuntu
    sudo pip install metals
    should work, providing a metals.sh in the path
  • Or get python source via from the Source tab http://code.google.com/p/metals/source/browse/ and 'install' by copying metals.py (and opensubtitleshashing.py); create an executable bash file metals on your path with the content of exec python /path/to/metals.py "$@"

See also

For a similar project regarding metadata for scholarly pdf files see 'pdfmeat' (surely am combining both approaches into a generic one tomorrow ;)

Powered by Google Project Hosting