This is a small go package for calculating movie hashes used by Media Player Classic. For more information, see http://trac.opensubtitles.org/projects/opensubtitles/wiki/HashSourceCodes
go get github.com/radenling/moviehash
Import the library:
import "github.com/radenling/moviehash"
Call it using ComputeFileHash or ComputeHash:
hash, err := ComputeFileHash(filename)
To run the tests you need two test files from opensubtitles.org
Run the tests with the go tool:
go test