From b4d535710fce798ccedc14976f5be50087edcfe4 Mon Sep 17 00:00:00 2001
From: Dermot Duffy <dermot.duffy@gmail.com>
Date: Mon, 6 Jun 2016 21:11:03 +0100
Subject: [PATCH]  - Minor spacing fixes.

---
 motioneye/handlers.py       |  8 ++++----
 motioneye/static/js/main.js | 20 ++++++++++----------
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/motioneye/handlers.py b/motioneye/handlers.py
index 63b67fd..549d8f4 100644
--- a/motioneye/handlers.py
+++ b/motioneye/handlers.py
@@ -1397,12 +1397,12 @@ class MovieHandler(BaseHandler):
                 if error:
                     return self.finish_json({'error': 'Failed to download movie from %(url)s: %(msg)s.' % {
                             'url': remote.pretty_camera_url(camera_config), 'msg': error}})
-		# Copy certain critical headers out of the remote response and
-		# into our response. Propogating these headers are necessary to
-		# support in-brower playback of remote movies. Also copy the 
+                # Copy certain critical headers out of the remote response and
+                # into our response. Propogating these headers are necessary to
+                # support in-brower playback of remote movies. Also copy the 
                 # response code which might be 200 or 206 (partial content, for range
                 # requests).
-		self.set_status(response.code)
+                self.set_status(response.code)
                 for header in ('Content-Type', 'Content-Range', 'Content-Length', 'Content-Disposition'):
                     if header in response.headers:
                         self.set_header(header, response.headers[header])
diff --git a/motioneye/static/js/main.js b/motioneye/static/js/main.js
index 8c45c81..fae95cc 100644
--- a/motioneye/static/js/main.js
+++ b/motioneye/static/js/main.js
@@ -2965,18 +2965,18 @@ function runPictureDialog(entries, pos, mediaType) {
         img.attr('src', addAuthParams('GET', basePath + mediaType + '/' + entry.cameraId + '/preview' + entry.path));
 
         if (playable) {
-	  playButton.on('click', function() {
-            video_source.attr('src', addAuthParams('GET', basePath + mediaType + '/' + entry.cameraId + '/download' + entry.path));
-            video_container.show();
-            video_container.get(0).load();  /* Must call load() after changing <video> source */
-            img.hide();
-            playButton.hide();
-            video_container.on('canplay', function() {
-              video_container.get(0).play();  /* Automatically play the video once the browser is ready */
+            playButton.on('click', function() {
+                video_source.attr('src', addAuthParams('GET', basePath + mediaType + '/' + entry.cameraId + '/download' + entry.path));
+                video_container.show();
+                video_container.get(0).load();  /* Must call load() after changing <video> source */
+                img.hide();
+                playButton.hide();
+                video_container.on('canplay', function() {
+                   video_container.get(0).play();  /* Automatically play the video once the browser is ready */
+                });
             });
-          });
 
-          playButton.show();
+            playButton.show();
         }
 
         img.load(function () {
-- 
2.39.5