-
Notifications
You must be signed in to change notification settings - Fork 13
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
Open manual downloads URLs automatically #28
Open manual downloads URLs automatically #28
Conversation
This way, one can simple call `browser $(cat manual_downloads.txt)` and it automatically opens up all the manual downloads urls.
This argument is used to set the browser the user whishes to be used to open the manual downloads. Also fixed a typo.
This is a really good idea. Let me know when it's ready to merge. |
The `shell=True` flag was added. The script `install.py` opens the downloads automatically now.
@cdbbnnyCode Ready to be merged from my side. |
xdg-open could be used to open urls in the default browser, or even better:
|
Ah yes very true. Don't know why I made it so complicated haha. Will update it. |
Use `webbrowser` to open the urls instead of the a shell command. Modified the behaviour of the parse command too. Idea for the change comes from @endumiuz
I didn't test the new commit. Do you guys know of a way to download a dummy modpack or something? Don't want to run 5 minute downloads just for tests. |
I think you can skip creating the txt-file and just do |
Also updated README.md usage.
Hey thanks for the updates. I was going to suggest at least not using the shell (as that adds a lot of variables in terms of complexity), but this looks much better. |
Looks like it crashes because each entry of actual_manual_dls is a tuple of (url, outfile). |
Also, I created a test modpack for further verification |
It is rather annoying and slow to click on all the manual downloads. Instead the script could write the downloads a text file which can be open by a browser all at once.
With this PR, one can use
which will open up all the URLs that were not able to download automatically. This works with any browser that can open URLs from terminal.