[YouTube] Fix extraction of Shorts in channels and remove visitor data usage #1221
+1,491
−1,349
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes the extraction of Shorts in their channel tab due to a new UI element being rolled-out replacing the
reelItemRenderer
,shortsLockupViewModel
. It doesn't provide more information than areelItemRenderer
.It also removes the usage of a visitor data in continuations of Shorts channel tabs, which used to be mandatory to get valid continuations with more Shorts. It isn't the case anymore, and the visitor data wasn't used since 5a6da5f, due to a lack of an index update with the channel IDs changes in this commit (the channel verified status was used instead).
The method
prepareDesktopJsonBuilder
ofYoutubeParsingHelper
with the visitor data argument isn't now used directly, but has been kept for now as it is (it will be very likely used with the PoToken changes for streaming URLs).Due to these visitor data changes, the mocks of
YoutubeChannelTabExtractorTest.Shorts
test class had to be updated.Fixes TeamNewPipe/NewPipe#11554.