Watch history (#232)
* [PoC] Watch history * Render watch history on web app * Changelog * Log out user on insufficient access
This commit is contained in:
1 parent
f581d568d9
commit
a1aed7d253
10 files changed
+92
-13
No files matched your search
@@ -25,6 +25,7 @@ namespace Http
|
||||
response = context.response
|
||||
task = context.server.task
|
||||
playQueue = task.playQueue
|
||||
invidiousNode = task.invidious
|
||||
|
||||
payload = request.Json()
|
||||
if payload = invalid
|
||||
@@ -39,7 +40,10 @@ namespace Http
|
||||
return true
|
||||
end if
|
||||
|
||||
contentNode = InvidiousContent.ToRowCellContentNode(payload, invalid)
|
||||
service = new Invidious.InvidiousService(invidiousNode)
|
||||
instance = service.GetInstance()
|
||||
|
||||
contentNode = InvidiousContent.ToRowCellContentNode(payload, instance)
|
||||
playQueue@.AddToQueue(contentNode)
|
||||
|
||||
queue = playQueue@.GetQueue()
|
||||
@@ -53,6 +57,7 @@ namespace Http
|
||||
response = context.response
|
||||
task = context.server.task
|
||||
playQueue = task.playQueue
|
||||
invidiousNode = task.invidious
|
||||
|
||||
payload = request.Json()
|
||||
if payload = invalid
|
||||
@@ -71,7 +76,10 @@ namespace Http
|
||||
payload.timestamp = payload.timestamp.toInt()
|
||||
end if
|
||||
|
||||
contentNode = InvidiousContent.ToRowCellContentNode(payload, invalid)
|
||||
service = new Invidious.InvidiousService(invidiousNode)
|
||||
instance = service.GetInstance()
|
||||
|
||||
contentNode = InvidiousContent.ToRowCellContentNode(payload, instance)
|
||||
playlistIndex = IsInt(payload.playlistIndex) ? payload.playlistIndex : -1
|
||||
if contentNode.type = "playlist" and playlistIndex = -1
|
||||
playlistIndex = 0
|
||||
|
||||
Reference in new issue
Block a user