Skip to content

[YouTube] Fix retrieving the title for videos with no title#1460

Merged
TobiGr merged 2 commits intoTeamNewPipe:devfrom
G-flat:fix_error_for_yt_videos_with_no_title
Feb 28, 2026
Merged

[YouTube] Fix retrieving the title for videos with no title#1460
TobiGr merged 2 commits intoTeamNewPipe:devfrom
G-flat:fix_error_for_yt_videos_with_no_title

Conversation

@G-flat
Copy link
Copy Markdown
Contributor

@G-flat G-flat commented Feb 22, 2026

  • I carefully read the contribution guidelines and agree to them.
  • I have tested the API against NewPipe.
  • I agree to create a pull request for NewPipe as soon as possible to make it compatible with the changed API.

It's possible for YouTube videos to have no title, such as https://www.youtube.com/watch?v=nc1kN8ZSfGQ. In YoutubeStreamInfoItemExtractor.getName(), the title object will contain a runs array for videos with a title, but the array will not be present for videos that don't. This pull request changes the method to return an empty title string if runs is not found in the title object.

Fixes TeamNewPipe/NewPipe#8782.

@TobiGr
Copy link
Copy Markdown
Contributor

TobiGr commented Feb 22, 2026

Thank you, could you add a test for this video? Those are edgecases that should be tested against.

@TobiGr TobiGr added the YouTube Service, https://www.youtube.com/ label Feb 22, 2026
@ShareASmile ShareASmile added the bug Issue or PR is related to a bug label Feb 23, 2026
@sonarqubecloud
Copy link
Copy Markdown

@G-flat
Copy link
Copy Markdown
Contributor Author

G-flat commented Feb 28, 2026

Thank you, could you add a test for this video? Those are edgecases that should be tested against.

I've added a test for the YouTube video without a title mentioned in this pull request.

@ShareASmile ShareASmile added the ready for review Most of the work is done, PR is now ready for a review label Feb 28, 2026
Copy link
Copy Markdown
Contributor

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

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

Thank you

@TobiGr TobiGr merged commit 504d099 into TeamNewPipe:dev Feb 28, 2026
3 checks passed
@ShareASmile ShareASmile removed the ready for review Most of the work is done, PR is now ready for a review label Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue or PR is related to a bug YouTube Service, https://www.youtube.com/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[YouTube] Browsing Channel having video without title would make an error

3 participants