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 #1169

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Apr 20, 2024

Full credits to @AudricV

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.
@Stypox
Copy link
Member Author

Stypox commented Apr 20, 2024

Sorry, had to open #1170 because I couldn't push to AudricV's repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants