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 Music] Fix extracting search item view/subscriber count when = 0 #528

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

Stypox
Copy link
Member

@Stypox Stypox commented Jan 27, 2021

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

Fixes the comment TeamNewPipe/NewPipe#5455 (comment)

@Stypox Stypox mentioned this pull request Jan 27, 2021
14 tasks
@@ -105,7 +108,7 @@ public void onFetchPage(@Nonnull final Downloader downloader) throws IOException
.end()
.value("query", getSearchString())
.value("params", params)
.end().done().getBytes("UTF-8");
.end().done().getBytes(StandardCharsets.UTF_8);
Copy link
Member

@TobiGr TobiGr Jan 27, 2021

Choose a reason for hiding this comment

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

Is that going to break compatibility with the legacy version?
Or can we use that safely, because this is a precoompiled lib?
StandardCharset were added with API 19 to Android: https://developer.android.com/reference/java/nio/charset/StandardCharsets

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, I have no idea, I can revert that commit if needed

Copy link
Member

Choose a reason for hiding this comment

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

See #269
We should remove the other occurencies of that class, too.

Copy link
Member

Choose a reason for hiding this comment

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

There's an issue to provide a backport: https://issuetracker.google.com/issues/169047771

Copy link
Member Author

Choose a reason for hiding this comment

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

Reverted @TobiGr

Copy link
Member

@TobiGr TobiGr Jan 29, 2021

Choose a reason for hiding this comment

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

thanks. I searched for that class, but only found an unused import (see d728c4f).

@TobiGr TobiGr merged commit bfa6399 into TeamNewPipe:dev Jan 29, 2021
@TobiGr TobiGr added bug Issue is related to a bug youtube service, https://www.youtube.com/ labels Jan 29, 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
Development

Successfully merging this pull request may close these issues.

3 participants