-
-
-
-
-
-
-
+
-
- {this.state.streamUrl && }
)
}
diff --git a/app/src/hooks/customHooks.js b/app/src/hooks/customHooks.js
index 0d92950f..95def379 100644
--- a/app/src/hooks/customHooks.js
+++ b/app/src/hooks/customHooks.js
@@ -16,7 +16,7 @@ export const useSearchParam = (key, defaultValue = null) => {
params.append(key, value);
}
history.push({search: params.toString()});
- }, [value])
+ }, [value, history, key])
return [value, setValue];
}
@@ -29,13 +29,13 @@ export const useSearch = () => {
const localSearchArchives = async (term) => {
setArchives(null);
- const [archives, total] = await searchArchives(0, 6, null, term);
+ const [archives] = await searchArchives(0, 6, null, term);
setArchives(archives);
}
const localSearchVideos = async (term) => {
setVideos(null);
- const [videos, total] = await searchVideos(0, 6, null, term);
+ const [videos] = await searchVideos(0, 6, null, term);
setVideos(videos);
}
diff --git a/modules/archive/api.py b/modules/archive/api.py
index dc2027e0..086afb3f 100644
--- a/modules/archive/api.py
+++ b/modules/archive/api.py
@@ -3,11 +3,12 @@ from http import HTTPStatus
from requests import Request
from sanic import response
+from sanic_ext import validate
+from sanic_ext.extensions.openapi import openapi
from wrolpi.common import logger, wrol_mode_check, api_param_limiter
-from wrolpi.errors import ValidationError
from wrolpi.root_api import get_blueprint, json_response
-from wrolpi.schema import validate_doc, JSONErrorResponse
+from wrolpi.schema import JSONErrorResponse
from . import lib
from .schema import ArchiveSearchRequest, ArchiveSearchResponse
@@ -19,12 +20,8 @@ logger = logger.getChild(__name__)
@bp.delete('/