Skip to content

Search: add isCorrectedSearch() and fix YoutubeSearchExtractor#getSea…#311

Merged
wb9688 merged 8 commits intoTeamNewPipe:devfrom
B0pol:fixSearchSuggestion
May 12, 2020
Merged

Search: add isCorrectedSearch() and fix YoutubeSearchExtractor#getSea…#311
wb9688 merged 8 commits intoTeamNewPipe:devfrom
B0pol:fixSearchSuggestion

Conversation

@B0pol
Copy link
Member

@B0pol B0pol commented Apr 11, 2020

  • 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.

See TeamNewPipe/NewPipe#3419 and TeamNewPipe/NewPipe#3419 (comment)
With TeamNewPipe/NewPipe#3419, I figured out two things:

YouTube (& YouTube Music) either corrects your query, or suggest another one.
I fixed the suggestion in YouTube which were actually the corrected query, and added a boolean to know if the query was corrected.

@TobiGr TobiGr added the youtube service, https://www.youtube.com/ label Apr 11, 2020
@B0pol B0pol force-pushed the fixSearchSuggestion branch from e3733f4 to ff83546 Compare April 12, 2020 13:36
@B0pol B0pol force-pushed the fixSearchSuggestion branch from df1ff6f to 6d177e9 Compare April 14, 2020 11:40
@B0pol
Copy link
Member Author

B0pol commented Apr 14, 2020

nothing has changed with the last push, I just messed up with my folders

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Looks good to me, only one thing

@B0pol B0pol requested a review from Stypox April 15, 2020 19:09
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

:-D

@wb9688 wb9688 modified the milestones: 0.20.0, 0.19.4 Apr 19, 2020
@B0pol B0pol added the bug Issue is related to a bug label Apr 20, 2020
@wb9688
Copy link
Member

wb9688 commented May 4, 2020

Could you rebase?

@B0pol
Copy link
Member Author

B0pol commented May 4, 2020

I'm getting some failing tests so I'll check later

@wb9688
Copy link
Member

wb9688 commented May 4, 2020

@B0pol: You just don't have the ParsingException imported in MediaCCCSearchExtractor

@B0pol B0pol requested a review from wb9688 May 5, 2020 08:03
@B0pol
Copy link
Member Author

B0pol commented May 5, 2020

@B0pol: You just don't have the ParsingException imported in MediaCCCSearchExtractor

The main problem was the new nanojson version. Could you review if this part is ok?

@B0pol B0pol force-pushed the fixSearchSuggestion branch from 4c2242d to 6fca13e Compare May 7, 2020 13:39
@B0pol B0pol force-pushed the fixSearchSuggestion branch from 6fca13e to 6cff5de Compare May 7, 2020 13:41
@B0pol
Copy link
Member Author

B0pol commented May 7, 2020

The failing test in YoutubeSeachExtractorTest, inner class PageTest, test duplicatedItemsCheck is failing with:
"Upload date not in the past"
It's unrelated to this PR, and it's because there is a premiere https://www.youtube.com/watch?v=NWjVaAvXWEo. I'll open an issue soon

@wb9688
Copy link
Member

wb9688 commented May 7, 2020

@B0pol: That will be fixed by #309

@B0pol B0pol requested a review from wb9688 May 11, 2020 09:22
@wb9688 wb9688 merged commit baf5dd3 into TeamNewPipe:dev May 12, 2020
@B0pol B0pol deleted the fixSearchSuggestion branch May 12, 2020 08:17
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.

4 participants