From 289aba72ab5481aa5cc3cc45882985ae7ef77490 Mon Sep 17 00:00:00 2001 From: Dan Milne Date: Fri, 29 Nov 2024 01:13:26 +0000 Subject: [PATCH] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 19bf9a4..af4fd7c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,11 @@ This is an implementation of [OpenSubtitle's Moviehash](https://trac.opensubtitl ```ruby Moviehash.compute_hash("test/files/breakdance.avi") => "8e245d9679d31e12" -# via the web - run this in the console: +``` + +When computing the hash of a file on the web, only the required bytes are downloaded, using HTTP's Range requests +```ruby +# via the web - run this in the console to test: # ruby -run -e httpd test/files -p 8000 Moviehash.compute_hash("http://localhost:8000/breakdance.avi") => "8e245d9679d31e12"