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

+1
View File
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- An error when Invidious doesn't return valid video metadata
- A bug where playlists with small number of videos has duplicates
- A bug where DASH manifest was not generated correctly for proxied Invidious videos
- A bug where watch history videos repeat indefinitely
## [0.37.0] - 2025-05-16
@@ -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)