Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Add Solid Torrents engine #2626

Merged
merged 1 commit into from Mar 12, 2021
Merged

Add Solid Torrents engine #2626

merged 1 commit into from Mar 12, 2021

Conversation

mikeri
Copy link
Contributor

@mikeri mikeri commented Mar 4, 2021

What does this PR do?

Add Solid Torrents engine

Why is this change important?

It's not

How to test this PR locally?

Comment out "disabled : True" from the solidtorrents config section

@return42
Copy link
Contributor

return42 commented Mar 4, 2021

@maiki thanks for contributing .. do you now if there exists a documentation of the API (https://www.solidtorrents.net/api/v1)?

Copy link
Contributor

@return42 return42 left a comment

Choose a reason for hiding this comment

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

LGTM .. I have only some minor nits .. you can fetch from my branch: https://github.com/return42/searx/commits/solidtorrents

@kvch
Copy link
Member

kvch commented Mar 4, 2021

After the comments above are addressed, I will approve the PR.

@mikeri
Copy link
Contributor Author

mikeri commented Mar 4, 2021

@return42, I don't know about any documentation. Thanks for the fixes!

@return42
Copy link
Contributor

return42 commented Mar 5, 2021

@mikeri since last patches on branch master there is a conflict in the ./Makefile .. can you solve this conflict / or fetch again from my branch where I solved the conflict already. / thanks!

@mikeri
Copy link
Contributor Author

mikeri commented Mar 5, 2021

@return42 done.

@unixfox
Copy link
Member

unixfox commented Mar 5, 2021

@mikeri since last patches on branch master there is a conflict in the ./Makefile .. can you solve this conflict / or fetch again from my branch where I solved the conflict already. / thanks!

mmh why is it not a separate PR for that instead? it's unrelated to this new engine.

@return42
Copy link
Contributor

return42 commented Mar 5, 2021

mmh why is it not a separate PR for that instead? it's unrelated to this new engine.

sorry for being misleading / I was asking for a rebase on branch master .. nothing special.

@mikeri
Copy link
Contributor Author

mikeri commented Mar 5, 2021

Sorry for not being very experienced with git (I mostly use it for single user use), what exactly do I need to do?

@dalf
Copy link
Contributor

dalf commented Mar 5, 2021

Can you squash your commit ?

git rebase -i HEAD~2

Then on the second commit (f484a7c) , replace pick by fixup

Save, check the two commits are merged : git log.

Then push force on your branch:

git push --force mikeri solidtorrents

(may be it is not mikeri, get the right value using git remote -v)


Instead of git merge origin master you can git pull --rebase origin master : it will rewrite your git history in your branch, but you won't have a merge commit ( f484a7c ).

@return42
Copy link
Contributor

return42 commented Mar 7, 2021

@dalf just a suggestion: By github defaults, maintainers have write access to the branch of a PR. More and more we have discussions about git force and squash .. most often it consumes a lot of time to teach the sender of a PR how to process such tasks. If you think it takes to much time in one ore the other case, feel free to make use of the write access.

@mikeri mikeri force-pushed the solidtorrents branch 2 times, most recently from d87355a to 1ea56b0 Compare March 7, 2021 12:14
@mikeri
Copy link
Contributor Author

mikeri commented Mar 7, 2021

I tried @dalf 's advice (git pull --rebase origin master) and pushing, but that polluted the PR with all the commits. I tried undoing it and then force pushing with the Makefile conflict fixed, but the PR still seems polluted with my mistake. Should I just make a new PR?

@return42
Copy link
Contributor

return42 commented Mar 7, 2021

Should I just make a new PR?

No need for .. lets wait .. we will find a solution for ... :)

@return42
Copy link
Contributor

return42 commented Mar 7, 2021

I tried @dalf 's advice (git pull --rebase origin master) and pushing, but that polluted the PR with all the commits.

I guess that did not worked, since your "origin" is your fork and not the searx repository. You need to add searx reposetory as a another remote (name it "upstream") and then you can do a git pull --rebase upstream master

For convenience I did it for you, see my branch: https://github.com/return42/searx/commits/solidtorrents

You or even @dalf can fetch from and push on the solidtorrents branch of your searx fork. / I'm not a maintainer, so I do not have write access to your branch :)

@mikeri
Copy link
Contributor Author

mikeri commented Mar 8, 2021

I recreated the branch, it should be good to go now?

@return42
Copy link
Contributor

return42 commented Mar 8, 2021

LGTM / thanks.

TLDR;

I recreated the branch,

I recommend to teach yourself git workflows .. it's worth .. git is the SCM you will work with in the next 20 years ;-)

@dalf dalf self-requested a review March 12, 2021 18:19
@kvch kvch merged commit 92dd5e2 into searx:master Mar 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants