The hash function is one of the main parts of the SubDB ecosystem. You need to know the hash of the video file, either to download or upload subtitles. Our hash is composed by taking the first and the last 64kb of the video file, putting all together and generating a md5 of the resulting data (128kb).
This repository contain implementation samples of the SubDB hash function on multiple languages.
To make sure that your hash function is returning the correct hash for a video, here we have two sample files you can use to compare:
Showtime Dexter Promo sample for SubDB: ffd8d4aa68033dc03d1c8ef373b9028c
FX Justified Trailer sample for SubDB: edc1981d6459c6111fe36205b4aff6c2
Want to contribute? Great! Just follow these simple steps:
- Fork it.
- Create a branch (
git checkout -b my_hash_code
) - Commit your changes (
git commit -am "Add hash sample written on my favorite language"
) - Push to the branch (
git push origin my_hash_code
) - Open a Pull Request
- Enjoy a refreshing Coke Zero and wait