darktrojan / openwith

Open With add-on for Firefox
https://addons.mozilla.org/addon/open-with/
411 stars 70 forks source link

Now what? #340

Open Beach77 opened 1 year ago

Beach77 commented 1 year ago

I have installed the addon, the test succeeds and it finds all browsers. But how do I download with it using yt-dlp? That's the part I'm confused about and I would appreciate it if someone shows me how to add yt-dlp to it. I'm using a mac with Monterey 12.6. Thanks.

Mattwmaster58 commented 1 year ago

Also wondering on tips to debug this. Currently, I have the custom command yt-dlp "%s" -o ~/Downloads/yt-dlp/%(name)s.%(ext)s however, this doesn't appear to work and I haven't found a good way to debug exactly why.

Edit: Wow, after having this broken for months I revisited it and took a look. Turns out the download path didn't exist which was causing it to fail silently. After fixing the issue, works fine!

Beach77 commented 1 year ago

Also wondering on tips to debug this. Currently, I have the custom command yt-dlp "%s" -o ~/Downloads/yt-dlp/%(name)s.%(ext)s however, this doesn't appear to work and I haven't found a good way to debug exactly why.

Edit: Wow, after having this broken for months I revisited it and took a look. Turns out the download path didn't exist which was causing it to fail silently. After fixing the issue, works fine!

Good job on fixing it and thanks for replying. I'm still not sure on how to get it to work though since I'm not good with computers other than following instructions. How do I tell the "Open With" add-on where yt-dlp is so that I can make it download videos? I feel like an idiot trying to figure it out and will soon give up. Also naming the add-on "Open With" isn't helping because googling brings up nothing because there are millions of results with sentence "open with".

Killogy commented 1 year ago

@Beach77 Add a new "Browser" and in the command field add the yt-dlp path between quotation, then add the command to download the video.

For example, I have yt-dlp.exe and mpv.exe in the same folder and I renamed yt-dlp.exe to youtube-dl.exe.

Command path field is "C:\Users\Killogy\AppData\Roaming\ACEStream\mpv\youtube-dl.exe" -o ~/Videos/%(title)s.%(ext)s

I visit a youtube video and from Open With menu I choose the yt-dlp entrie then the youtube video is downloaded in "C:\Users\Killogy\Videos" folder.

P.S: Visit yt-dlp github to learn more about usage and options.

Beach77 commented 1 year ago

@Beach77 Add a new "Browser" and in the command field add the yt-dlp path between quotation, then add the command to download the video.

For example, I have yt-dlp.exe and mpv.exe in the same folder and I renamed yt-dlp.exe to youtube-dl.exe.

Command path field is "C:\Users\Killogy\AppData\Roaming\ACEStream\mpv\youtube-dl.exe" -o ~/Videos/%(title)s.%(ext)s

I visit a youtube video and from Open With menu I choose the yt-dlp entrie then the youtube video is downloaded in "C:\Users\Killogy\Videos" folder.

P.S: Visit yt-dlp github to learn more about usage and options.

Sorry for replying so late and thank you very much for this! I will be trying this soon and I think this will become very helpful for me.