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

Implement the shorts tab on channel pages #3533

Merged
merged 3 commits into from
May 15, 2023

Conversation

absidue
Copy link
Member

@absidue absidue commented May 13, 2023

Implement the shorts tab on channel pages

Pull Request Type

  • Feature Implementation

Related issue

LuanRT/YouTube.js#401 (Adds support for the accessibility labels, so we can extract the duration of shorts)
iv-org/invidious#3801 (Invidious bug report about the upcoming issue)

Description

This pull request implements the channel shorts tab for both the local and Invidious APIs. As the Invidious API currently has a bug that results in all shorts being labelled as upcoming, this pull request also includes a work around for that.

Sorting is currently broken and will always sort by newest on the Invidious API. Sorting the shorts tab is a todo in their code base: https://github.com/iv-org/invidious/blob/master/src/invidious/channels/videos.cr#L135

Screenshots

too lazy, also it just looks like the videos and live tabs anyway

Testing

Test the shorts tab on both the local and Invidious APIs, including loading more and sorting (sorting only works for the local API at the moment, see description above)

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: a4d45b5

@absidue absidue marked this pull request as ready for review May 14, 2023 11:46
@github-actions github-actions bot added PR: dependencies Pull requests that update a dependency file PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: WIP labels May 14, 2023
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 14, 2023 11:46
@efb4f5ff-1298-471a-8973-3d47447115dc

closes #3093

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

Invidious API doesnt load more shorts

VirtualBoxVM_nzKOfRMdL4.mp4

@ChunkyProgrammer
Copy link
Member

Invidious API doesnt load more shorts

VirtualBoxVM_nzKOfRMdL4.mp4

That's an issue with invidious

@FreeTubeBot FreeTubeBot merged commit 9019be2 into FreeTubeApp:development May 15, 2023
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label May 15, 2023
@absidue absidue deleted the channel-shorts branch May 15, 2023 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants