Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YouTube] Support shows and page header on user channels #1170

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Apr 20, 2024

Full credits to @AudricV (description by him coming soon).

Fixes TeamNewPipe/NewPipe#5793, fixes TeamNewPipe/NewPipe#10826.

The runs object was computed twice in getTextFromObject and getUrlFromObject
methods, leading to unneeded search costs. This has been avoided by storing the
array in method variables.
…lHelper

This code will be used by YoutubeChannelTabExtractor to return whether
the channel is verified in the corresponding property of all InfoItems from
this channel.

Also throw an exception when we cannot get the verified status of a channel in
YoutubeChannelExtractor due to a missing channelHeader, if the channel has no
channelAgeGateRenderer.
As there are multiple show UI elements which share a lot of common data, a base
implementation, an abstract class named YoutubeBaseShowInfoItemExtractor, has
been created to handle common cases.
Also fix naming of info items' collection methods.
…hannels

Also move duplicate strings into constants and support pageHeader channel
header in user channels on YoutubeChannelHelper methods.
Also move duplicate strings into constants and add a missing default switch
case.
…s' content

Gaming topic channels do not upload any content, all the content is coming from
other channels.

Also, uploader name, URL and verified status come are now got as much as
possible from items instead of the channel info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
youtube service, https://www.youtube.com/
Projects
None yet
3 participants