opensubtitles_hash 1.0.0 opensubtitles_hash: ^1.0.0 copied to clipboard
Simple Dart hashing library for OpenSubtitles.
opensubtitles_hash #
Simple Dart hashing library for OpenSubtitles.
Usage #
To hash a local file:
String hash = await OpenSubtitlesHasher.computeFileHash(
new File('breakdance.avi')
);
To hash a remote file (HTTP):
String hash = await OpenSubtitlesHasher.computeURLHash(
"http://www.opensubtitles.org/addons/avi/breakdance.avi",
headers: { "X-My-Header": "true" }, // (Optional)
followRedirects: false // (Optional)
);
Testing #
Simply use pub run test test.dart
to test that the library functions correctly.