diff --git a/CHANGELOG.md b/CHANGELOG.md index b6b04233..1db21be5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Subscriptions looping instead of loading older videos + ### Removed - Trending endpoints from code base diff --git a/playlet-lib/src/components/Services/Innertube/NodesParser.bs b/playlet-lib/src/components/Services/Innertube/NodesParser.bs index e2b2b44b..c41f9042 100644 --- a/playlet-lib/src/components/Services/Innertube/NodesParser.bs +++ b/playlet-lib/src/components/Services/Innertube/NodesParser.bs @@ -251,6 +251,15 @@ namespace Innertube context.currentFeed.sortOptions = sortOptions end if end if + + continuation = ObjectUtils.Dig(nodeData, ["continuations", 0, "nextContinuationData", "continuation"]) + if IsString(continuation) + if not StringUtils.IsNullOrEmpty(context.currentFeed.continuation) + StartNewFeed("", context) + end if + context.currentFeed.continuation = continuation + end if + return nodeData["contents"] end function