From fb1f5f2324819714cf44b5078fa17b6280fc1338 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 12 Jan 2021 12:03:17 -0500 Subject: [PATCH] use session id as stream client id --- fHDHR_web/api/tuners.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fHDHR_web/api/tuners.py b/fHDHR_web/api/tuners.py index 27a0bee..24768c7 100644 --- a/fHDHR_web/api/tuners.py +++ b/fHDHR_web/api/tuners.py @@ -1,6 +1,5 @@ from flask import Response, request, redirect, abort, stream_with_context, session import urllib.parse -import uuid import json from fHDHR.exceptions import TunerError @@ -75,7 +74,7 @@ class Tuners(): "transcode": transcode, "accessed": accessed_url, "client": client_address, - "client_id": "%s_%s" % (client_address, uuid.uuid4()) + "client_id": session["session_id"] } try: