Fix a bug where watch history videos repeat indefinitely

This commit is contained in:
Brahim Hadriche committed 2025-05-19 17:50:50 -04:00
1 parent 8b123b18f5
commit aed102f57a
2 files changed
+15 -1

No files matched your search

@@ -184,11 +184,24 @@ namespace Http
options = {
"accessToken": accessToken.Mid("Bearer ".Len())
}
continuation = request.query.continuation
if not StringUtils.IsNullOrEmpty(continuation)
hasContinuation = not StringUtils.IsNullOrEmpty(continuation)
if hasContinuation
options.continuation = continuation
end if
if not hasContinuation
page = ValidString(request.query.page).ToInt()
if page > 1
LogError("Playlet backend does not use history pagination (use continuation instead)")
response.Json({
"items": []
})
return true
end if
end if
result = InnertubeService.GetWatchHistory(options)
if result.error <> invalid
response.Json(result)