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

Add search type link #9181

Closed
wants to merge 1 commit into from
Closed

Conversation

Sola0404
Copy link

@Sola0404 Sola0404 commented Oct 23, 2022

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • Add SEARCH type case in the intent handler
  • Add a method to generate an intent conveying the information of service id, URL, link type, and search string. This method is used in getIntentByLink when link type is SEARCH, distinguishing the conditions between using SEARCH link and open search.

Fixes the following issue(s)

Fixes #2313

PR relies on

TeamNewPipe/NewPipeExtractor#950

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.

Due diligence

@AudricV
Copy link
Member

AudricV commented Oct 23, 2022

Could you explain better what you added in this pull request? Also, it seems you did extractor changes for this, but you didn't use them in this PR. Please do so if that's needed.

@AudricV AudricV added template ignored The user didn't follow the template/instructions (or removed them) waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. labels Oct 23, 2022
@Sola0404
Copy link
Author

Thank you for your response. I've updated the description.
I changed extractor for this issue, but I don't know how to include these changes in this PR, cause they are from different repositories. Could you give me some advice? Thanks in advance!

@github-actions github-actions bot removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Oct 23, 2022
@Stypox
Copy link
Member

Stypox commented Oct 25, 2022

@Sola0404 You need to create a pull request in NewPipeExtractor, too. As you noticed, they are two different repositories, hence two different PRs ;-)

@ShareASmile
Copy link
Collaborator

@Sola0404 You need to create a pull request in NewPipeExtractor, too.

@Stypox it's already been opened on extractor TeamNewPipe/NewPipeExtractor#950

AudricV wrote:

it seems you did extractor changes for this, but you didn't use them in this PR. Please do so if that's needed.

Stypox @Sola0404 is asking how to use extractor commits in this PR

@opusforlife2
Copy link
Collaborator

Ah, @Sola0404 you should have followed the template more carefully. There is a section where you list which PR(s) this one relies on. You must link your Newpipe Extractor PR in your description.

You have to use the hash of the latest commit in your Newpipe Extractor PR branch, for example here is a commit hash to match this PR TeamNewPipe/NewPipeExtractor#810.

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.

Are urls copied to the search field in NewPipe handled as opened URLs?

Comment on lines +690 to +691
return getOpenSearchIntent(context, url, service.getServiceId(),
linkType, service.getIdByUrl(url));
Copy link
Member

Choose a reason for hiding this comment

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

Intead of obtaining the ID this way, as said in TeamNewPipe/NewPipeExtractor#950 (comment), I think you should use service.getSearchLHFactory().getId(url).

@AudricV AudricV added feature request Issue is related to a feature in the app and removed template ignored The user didn't follow the template/instructions (or removed them) labels Oct 27, 2022
@Stypox
Copy link
Member

Stypox commented Mar 28, 2024

I'm closing this for now, both because of inactivity, and because we're going to start the rewrite soon and this would get conflicts despite its simplicity. I'm leaving TeamNewPipe/NewPipeExtractor#950 (comment) open though, so once that is done and the rewrite is in a good shape this can be reopened. Thank you!

@Stypox Stypox closed this Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issue is related to a feature in the app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] support search URLs
5 participants