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

[YouTube] Fix trending getName() #582

Merged
merged 1 commit into from
Mar 24, 2021
Merged

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Mar 24, 2021

Previously the title was nested inside a JsonObject, so calling getTextFromObject() was needed; now it is just provided as a raw String. Just to be sure I added a getTextAtKey() function that checks the data type at a specific key, and if it is String then getString(key) is returned, otherwise getTextFromObject(getObject(key)) is returned.

Fixes TeamNewPipe/NewPipe#5893
Fixes TeamNewPipe/NewPipe#5895
Fixes #581

@Stypox Stypox mentioned this pull request Mar 24, 2021
7 tasks
Copy link
Member

@Redirion Redirion left a comment

Choose a reason for hiding this comment

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

lgtm

@TobiGr TobiGr merged commit cae6cea into TeamNewPipe:dev Mar 24, 2021
@AudricV AudricV added bug Issue is related to a bug youtube service, https://www.youtube.com/ labels Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug youtube service, https://www.youtube.com/
Projects
None yet
4 participants