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

Hide channel names on the Channel page #3956

Draft
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

kommunarr
Copy link
Collaborator

@kommunarr kommunarr commented Aug 27, 2023

Drafted for the reason of, if I'm reading & remembering correctly, we can't currently properly identify the edge cases of multiple authors with either available backend, in which cases we don't want to block the author labels from being displayed.

Hide channel names on the Channel page

Pull Request Type

  • Feature Implementation

Related issue

closes #3955

Description

Adds boolean determining whether channel names should be shown in a video list or playlist list, and sets it to true for Channel pages' Videos, Shorts, Playlists, and Live tabs.

Note: This should not be the behavior when there two or more one channel names being displayed on a channel, either throughout the listed videos or under any one given video. We may be able to parse these scenarios more cleanly with our Local API, but it is unlikely that we will be able to do so with data received from Invidious.

At this precise moment, FreeTube does not currently support any such case of multiple channels being displayed under one, but it is expected to in the future. It seems like a reasonable course of action to keep this PR in stasis until Invidious and/or our Local API adds fuller support for channels with multiple other channels displayed. Kudos to @absidue for communicating the relevant details and parameters of this problem.

Screenshots

Screenshot_20230827_031141
Screenshot_20230827_031151
Screenshot_20230827_031219

Testing

Has been tested on multiple channels displaying at most one channel.

Desktop

  • OS: OpenSUSE Tumbleweed
  • OS Version: 2023xxxx
  • FreeTube version: 0.19.0

A la another website, it makes sense to not show the channel name every video  when you are explicitly already perusing that channel's content.
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) August 27, 2023 08:14
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Aug 27, 2023
@kommunarr kommunarr removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Aug 27, 2023
@github-actions
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions
Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@kommunarr kommunarr removed the PR: WIP label Sep 12, 2023
@PikachuEXE
Copy link
Collaborator

PR/Issue: dependent?
Is this ready for review or not

@kommunarr
Copy link
Collaborator Author

See description

@PikachuEXE
Copy link
Collaborator

I have no idea if channel view support displaying special stuff like topic/auto generated channel etc.
No idea how to test this without full understanding
@absidue ?

@absidue
Copy link
Member

absidue commented Sep 14, 2023

The only thing currently supported in FreeTube is topic channels which display playlists that can point to the real artist channel or have multiple authors (not supported by invidious or youtube.js, youtube.js uses the entire text but only the first link/id).
Although it looks like the playlists tab is broken for some topic channels with the local API, I'll need to look into that, probably something to do with us forcing only created playlists to be shown so that channels like https://www.youtube.com/channel/UCez-2shYlHQY3LfILBuDYqQ work, but of course topic channels don't have their own playlists, so it shows an empty tab in FT at the moment.

@github-actions
Copy link
Contributor

This PR is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 14 days.

Copy link
Contributor

This PR is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@efb4f5ff-1298-471a-8973-3d47447115dc

So are we still waiting on more support on both API's?

@kommunarr
Copy link
Collaborator Author

Pretty sure. It's reliant on the schema being returned by Invidious and youtube.js, which is probably subject to change to fix their parsing in the near future. The most likely change to this implementation is that we will have to pass a parent channel ID to hide, and filter the list of displayed channel IDs. If it ends up being that we don't have all of the IDs as the completed state for either of Invidious or youtube.js, we'll just have to do that with channel name.

@absidue
Copy link
Member

absidue commented Nov 24, 2023

The only case we had in the past with content from other channels on a channel were albums and singles on the playlists tab on artist topic channels, but youtube has rearranged their layout, so currently we just have an empty playlists tab there.

So yes now all sources of content from other channels being displayed on a channel require changes to be supported (again).

Copy link
Contributor

github-actions bot commented Feb 1, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@kommunarr kommunarr marked this pull request as draft April 25, 2024 17:41
auto-merge was automatically disabled April 25, 2024 17:41

Pull request was converted to draft

@kommunarr
Copy link
Collaborator Author

kommunarr commented Apr 25, 2024

Drafted for the reason of, if I'm reading & remembering correctly, we can't currently properly identify the edge cases of multiple authors with either available backend, in which cases we don't want to block the author labels from being displayed. I don't feel confident enough in my grasp of the issue at this time to make PRs on YT.js or Invidious pertaining to the root of the underlying issue or to provide the exact action steps needed, but I can do so once I have cleared all of my higher priority tasks.

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

Successfully merging this pull request may close these issues.

[Feature Request]: Hide channel name under videos/playlists on the channel page
4 participants