mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-12-22 18:00:17 +00:00
add youtube_id to progress api key
This commit is contained in:
parent
c4d6bb35a3
commit
6078d8d276
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user