Mixes in in Playlet backend (#530)
This commit is contained in:
1 parent
5b6b5f5ec3
commit
0d21963d5f
12 files changed
+149
-36
No files matched your search
+18
-4
@@ -262,14 +262,28 @@ namespace Http
|
||||
route = request.route
|
||||
|
||||
playlistId = route.Mid("/playlet-invidious-backend/api/v1/playlists/".Len())
|
||||
continuation = request.query.continuation
|
||||
|
||||
options = {}
|
||||
continuation = request.query.continuation
|
||||
if not StringUtils.IsNullOrEmpty(continuation)
|
||||
options.continuation = continuation
|
||||
if playlistId.StartsWith("RD")
|
||||
if not StringUtils.IsNullOrEmpty(continuation)
|
||||
options.videoId = continuation
|
||||
else
|
||||
videoId = request.query.videoId
|
||||
if not StringUtils.IsNullOrEmpty(videoId)
|
||||
options.videoId = videoId
|
||||
end if
|
||||
end if
|
||||
|
||||
playlist = InnertubeService.GetMix(playlistId, options)
|
||||
else
|
||||
if not StringUtils.IsNullOrEmpty(continuation)
|
||||
options.continuation = continuation
|
||||
end if
|
||||
|
||||
playlist = InnertubeService.GetPlaylist(playlistId, options)
|
||||
end if
|
||||
|
||||
playlist = InnertubeService.GetPlaylist(playlistId, options)
|
||||
if playlist.error <> invalid
|
||||
response.Json(playlist)
|
||||
response.http_code = 500
|
||||
|
||||
Reference in new issue
Block a user