From bf1d65ea5701caa0bc5e61da734bb3ebe3b7ce93 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 4 Dec 2019 13:57:53 +0000 Subject: [PATCH] binary --- daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index c21c69bf..e5b5b2be 100644 --- a/daemon.py +++ b/daemon.py @@ -3541,7 +3541,7 @@ class PubServer(BaseHTTPRequestHandler): else: with open(mediaFilename, 'rb') as avFile: mediaBinary = avFile.read() - etag=sha1(data).hexdigest() + etag=sha1(mediaBinary).hexdigest() try: with open(mediaFilename+'.etag', 'w') as etagFile: etagFile.write(etag)