From 6078d8d27631271fdb0d2f95a022826ec5041286 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 24 Feb 2022 18:55:52 +0700 Subject: [PATCH] add youtube_id to progress api key --- tubearchivist/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/api/views.py b/tubearchivist/api/views.py index 5a71522..cfa1875 100644 --- a/tubearchivist/api/views.py +++ b/tubearchivist/api/views.py @@ -123,7 +123,7 @@ class VideoProgressView(ApiBaseView): """set progress position in redis""" position = request.data.get("position", 0) key = f"{request.user.id}:progress:{video_id}" - message = {"position": position} + message = {"position": position, "youtube_id": video_id} RedisArchivist().set_message(key, message, expire=False) self.response = request.data