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

Fix Freetube from crashing if caption attempting fallbacks to the FreeTube display language #5970

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

angus6b23
Copy link
Contributor

Title

Fix issue #5969

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

closes #5969

Description

The crash seems to be an issue when Freetube tries to run the sortCaptions function. The function expect the "langauge" key as a string, but the getTranslatedLocaleCaption function sometimes return an object causing it to crash.

Screenshots

N/A

Testing

Tested with the link of issue #5969 with traditional chinese and other locale settings

Desktop

  • OS: Linux Flatpak
  • OS Version: N/A
  • FreeTube version: v0.22.0 Beta

Additional context

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 27, 2024 18:34
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 27, 2024
@absidue
Copy link
Member

absidue commented Oct 27, 2024

Thank you for the pull request. Could you please pick a title that explains what the pull request actually does, as we use the titles as a basis for the changelogs and having the information in the title saves us a lot of time.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please change title of PR like @absidue requested!

@angus6b23 angus6b23 changed the title Fix issue #5969 Fix Freetube from crashing if caption attempting fallbacks to the FreeTube display language Oct 28, 2024
@FreeTubeBot FreeTubeBot merged commit e026b54 into FreeTubeApp:development Oct 28, 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 Oct 28, 2024
PikachuEXE added a commit to Zeabyte/FreeTube-0 that referenced this pull request Oct 29, 2024
* development: (225 commits)
  Invidious API: Add support for auto-dubbed audio tracks (FreeTubeApp#5943)
  Fix settings password handling (FreeTubeApp#5988)
  Translated using Weblate (Serbian)
  Translated using Weblate (Breton)
  Translated using Weblate (Toki Pona)
  Translated using Weblate (Breton)
  Translated using Weblate (Toki Pona)
  Translated using Weblate (Icelandic)
  Bump youtubei.js from 10.5.0 to 11.0.0 (FreeTubeApp#5996)
  Bump shaka-player from 4.11.10 to 4.11.11 (FreeTubeApp#5995)
  Bump eslint-plugin-vue from 9.29.1 to 9.30.0 in the eslint group (FreeTubeApp#5994)
  Translated using Weblate (Latvian)
  Translated using Weblate (Toki Pona)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Hungarian)
  Translated using Weblate (Toki Pona)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Hungarian)
  Migrate FtListChannel and FtListHashtag to the composition API (FreeTubeApp#5945)
  Fix issue FreeTubeApp#5969 (FreeTubeApp#5970)
  ...
Soham456 pushed a commit to Soham456/FreeTube that referenced this pull request Dec 5, 2024
SuperAKWA pushed a commit to SuperAKWA/FreeTube that referenced this pull request Jan 24, 2025
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.

[Bug]: Some videos will crash Freetube upon viewing when Freetube language is not set as English(US)
5 participants