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

Cleanup shorts duration parsing now that YouTube has removed it #4509

Merged

Conversation

absidue
Copy link
Member

@absidue absidue commented Jan 2, 2024

Cleanup shorts duration parsing now that YouTube has removed it

Pull Request Type

  • Bugfix

Related issue

NewPipeExtractor pulll request: TeamNewPipe/NewPipeExtractor#1140

Description

On the shorts channel tab and in shorts only playlists, the only way place the duration showed up was the accessibility text, unfortunately YouTube has now removed that. It used to look like this video title - x minute(s), x second(s) - play video or video title - x second(s) - play video, now the accessibility text looks like this video title - play Short. As the information is no longer there, this pull request removes the parsing code for it.

Previously the only place that we didn't have any video durations was the subscriptions page with RSS. In #3839 FreeTube started displaying the duration from the watch history, if it was available. I have now expanded that so it will also work for the shorts only playlists and on the shorts channel tab.

Screenshots

mrbeast-shorts-duration-parsing-error

Testing

Check that errors no longer show up in the console and that durations from the watch history show up when available.

MrBeast:
https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA/shorts

MrBeast auto-generated shorts playlist:
https://www.youtube.com/playlist?list=UUSHX6OQ3DkcsbYNE6H8uQQuVA

Desktop

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

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) January 2, 2024 15:57
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 2, 2024
@FreeTubeBot FreeTubeBot merged commit b2e1ae0 into FreeTubeApp:development Jan 2, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 2, 2024
@absidue absidue deleted the cleanup-short-duration-parsing branch January 2, 2024 18:13
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.

5 participants