QupZilla / qupzilla

Cross-platform Qt web browser
http://www.qupzilla.com
GNU General Public License v3.0
1.11k stars 350 forks source link

[Feature request] "Open URL with..." option in Download File dialog #2585

Open magiblot opened 6 years ago

magiblot commented 6 years ago

Hi there,

Some players such as mpv support playing multimedia directly in streaming mode. If I get to a download dialog but I don't want to spend time downloading the file, I will copy the URL, open a terminal and run the application with the URL as input parameter: I would find it very useful to be able to do this directly from the download dialog. It could also serve as a workaround for those installations of qupzilla lacking audio/video codecs.

I'm not sure of how useful this could be for other filetypes.

Thanks.

PS.: I'm enclosing two screenshots which describe what I said. screenshot_20180201_124943 screenshot_20180201_125033

ghost commented 6 years ago

It could also serve as a workaround for those installations of qupzilla lacking audio/video codecs.

QupZilla does not lacking anything!!! You have to read more about proprietary codecs! By the way, did you ever try the Videoner plugin?

magiblot commented 6 years ago

QupZilla does not lacking anything!!! You have to read more about proprietary codecs!

Excuse me, I used the wrong words.

By the way, did you ever try the Videoner plugin?

I didn't know about this plugin! It might be what I'm looking for.

ghost commented 6 years ago

I didn't know about this plugin! It might be what I'm looking for.

Maybe not exactly, but you might find it useful.

Also, as workaround you can create a simple shell script which can pass the media files to mpv or save it to the disk, and then set this script as download manager in Qupzilla.

ghost commented 6 years ago

@magiblot I was like you this may solve your problem https://github.com/QupZilla/qupzilla-plugins/issues/75

magiblot commented 6 years ago

@magiblot I was like you this may solve your problem QupZilla/qupzilla-plugins#75

Videoner is very useful for YouTube, but I'm not having problems with this site at the moment. It doesn't help with download links.

Also, as workaround you can create a simple shell script which can pass the media files to mpv or save it to the disk, and then set this script as download manager in Qupzilla.

Yes, it would take some time but this seems the simpliest way to attain the behaviour I'm looking for.

ghost commented 6 years ago

@cranes-bill I was trying to recreate the problem of @magiblot. I wrote a simple 'mpv`script to stream those mp3's

#!/bin/sh
mpv $1

and added this executable in both the general and media elements tabs in videoner. The problem is download button in the site https://my-free-mp3.net/ redirects to a different site and the continue button in the second site dynammically generates a download link. Because the download link is dynamically generated we can only get the orginal download link with file only in the pop up download box Copy download link where we cant use third mouse key.

image

ghost commented 6 years ago

That what i meant is quite different. Just create script which detect the file type and if it's media file pass it to mpv, otherwise use wget for example, then set it here: capture du 2018-02-02 09 07 39

ghost commented 6 years ago

@cranes-bill I didnt know that we can fix an external download manger in qupzilla. This is a nice feature but for now I am gonna stick with the native download manager. Can I ask what is the Arguments box here means. I have seen this box in both the download manger and videoner plugin. Is there any documentation about it?

ghost commented 6 years ago

You might set binary file as executable, so if it needs rguments, you can set it here. For example, if if you set /bin/wget as executable, you can set --continue --timeout=60 %d and so on as arguments

magiblot commented 6 years ago

Also, as workaround you can create a simple shell script which can pass the media files to mpv or save it to the disk, and then set this script as download manager in Qupzilla.

I have been thinking about this. I came to this idea:

In addition to the "External download manager", the user could be allowed to set "Custom commands". A custom command would consist of a executable, a list of arguments and a name, so that the user can identify them.

In the Download File dialog there would be a third option named "Run Command" where the user could choose one of their preconfigured custom commands or create a new one.

This would be an efficient and friendly way of helping the user in these cases where they need to execute the same command for each file they follow the link of, which could be several times.

Excuse me for asking you to implement any of these. I don't have the knowledge yet to program this on my own either as a workaround or as a pull request.

ghost commented 6 years ago

By the way, with simple modification, Videoner plugin can do the similar thing. capture du 2018-02-05 18 25 04

magiblot commented 6 years ago

Indeed, that is simpler than my whole idea. Maybe the easiest way to have this working with all links (including the dinamically generated ones, as @potholiday noticed) would be making the right-button work on the link in the Download File dialog.

magiblot commented 6 years ago

Please, no. Not only the purpose of my request wasn't downloading music (it was just an example), but the site you linked will generate transcodes of YouTube videos (which are already transcodes on their own). No way.