tyilo/yt_dlp_firefox

[Request] Please, Windows version.

iG8R opened this issue ยท 13 comments

iG8R commented

Hello.
Please, let the Windows users to feel the might of the integration yt-dlp and Firefox.

tyilo commented

I don't use Windows and have no plans for adding support for it.

But you're welcome to add support for it ๐Ÿ™‚

I don't use Windows and have no plans for adding support for it.

Is that why "Then clone this repository and run make install to install the required helper." doesn't make much sense to me? I'm very new to yt-dlp and coding in general and was hoping to find an addon that could make use of ytdlp from within my browser, just wasn't sure if I'm being an idiot for not installing it correctly :D

I got you, just made the extension work on windows 11 and 10, I have not tested it in other versions. The Extension part works under linux or windows because you know... Java and stuff, but the issue is the helper part, by just adapting a file or two, I dont remember, adding a registry value, adding a .bat wrapper making the yt-dlp.exe accessible from anywhere in the terminal, installing python from the Microsoft store and yes I have made a simple .bat installer for all of this, I just have to learn how to post it here, I'm brand new to github, so hang tight, windows compatibility comming up!

Update: I am having some hiccups with the .bat installer, Estimated Time of Posting on my fork will be this weekend, but If you are anxious, here is the helper folder with the buggy .bat installer it will install all but not copy the files to the created folder (you will have to make that manually) and... if you change your mind on the installation location then you will have to modify the path in the registry, the README.md file contains more info, if you have any questions from here to the weekend or thereafter let me know.... Ready.... GO! (just to clarify, install the web extension normally from the github page and then install this helper, that is it, a modified 2 step installation with some manual file stuff for now) aaaa darnit, forgot the README file, just open yt_installer_firefox_installer.bat in your text editor and you will get an idea of what the installer will do, but I repeat, you will have to manually copy and paste the files to the specified location, bugs, bugs bugs... lol
yt_dlp_firefox_installer.zip

hoooo, and I forgot! you need to install python from the Microsoft store because the helper uses python, now I think that is it, sorry, I am really excited about this porting, it is not much but I do it with great enthusiasm.

@iron4umx I couldn't get this working. I followed the instructions and the downloader extension says it's can't communicate with the helper.

Further, there's no information on how to actually use this thing, I assume you download through the extension button (When it is working). Help, please.

@Apocalypse612 I have created a repo with a version that works for windows, I will later run some tests to see if the helper can work directly with @tyilo 's original version.

My repo is: https://github.com/iron4umx/yt_dlp_firefox follow the instructions there, also take a look at the issues, at this moment the add-on should work fine for windows, I have also added to the documentation a little user guide:

To download media right click on a media url (example: from inside the YouTube webpage (but not limited) right click on a video) and click on the lower most option of the menu: Download with yt-dlp A pop-up will appear: yt-dlp Downloading: URL and when the media has downloaded it will appear a pop-up: yt-dlp Downloaded "name of file downloaded"

Here are the general basic instructions on how to install these add-on and the helper for windows:

1.- go to my repo: https://github.com/iron4umx/yt_dlp_firefox
2.- from there install onto Firefox my build of the add-on: https://addons.mozilla.org/en-US/firefox/addon/yt-dlp-downloader-win-linux/
3.- if not already install python from the Microsoft store
4.- from my repo click on the green button (code) and click on download zip
5.- unzip the file and go to the folder: windows_helper_installer
6.- double click on SETUP.bat
7.- install or reinstall the helper (if you have already installed yt-dlp for windows then the SETUP.bat will skip the installation of it, if not then it will install it)

As you can see there are prerequisites to this add-on, you need to already have installed:
-Mozilla Firefox
-Python (Go to the Microsoft store and install it)
-yt-dlp for windows (SETUP.bat will install it for you if you don't have it already, but if that fails then you have to install it manually)

Then you have to install the add-on for Firefox, then you have to download my repo, unzip it, and navigate to where the SETUP,bat is double click on it, it will ask you if you want to run as administrator or in some cases it will prevent you from running it because it is from an unknown source, click run anyways and then just select install or reinstall (SETUP.bat will detect if you already have installed it and give you the option to reinstall or uninstall)

After that go to YouTube and right click over a video and select the lowermost option: Download with yt-dlp, the media will be downloaded to the Downloads folder.

Please keep me posted and let me know if you get it running, I will try my best to help you get it up and running. Cheers!

Still getting errors and the helper isn't working properly. Yes, I installed it with admin. Yes, the 3 files it installed have yt-dlp in the same folder.

image

Good news, For windows, you can actually use my version of the helper with @tyilo how ever, you need to change a value of the .json file

from:

"allowed_extensions": ["yt_dlp_firefox@iron4umx.com"]
to:
"allowed_extensions": ["yt_dlp_firefox@tyilo.com"]

save it and then run SETUP.bat this is because I rebuilded the .xpi with some modifications but in the proscess I broke the popup function of the add-on icon this is a nice function that allows you to see information of downloaded media and has a button to show them, so pretty much:

install tyilo's .xpi firefox add-on on your firefox
then go to: https://github.com/iron4umx/yt_dlp_firefox
click on the green code button then click on download zip
go to Downloads folder, unzip/extract files
navigate to the folder: windows_helper_installer
right click on the file: yt_dlp_firefox.json click on open with, select notepad
chage from:
"allowed_extensions": ["yt_dlp_firefox@iron4umx.com"]
to:
"allowed_extensions": ["yt_dlp_firefox@tyilo.com"]
save the file, close notepad
Double click on SETUP.bat
select install or reinstall helper and follow prompts
and that should do it, pretty much my .xpi build is buggy but tyilo's is not, how ever my helper for windows does work, try it, keep me posted.

Downloads fail with an HTTP error, fragment 1 not found. Failed after 10 retries.

At least the helper is working now.

@Apocalypse612 Do a test on YouTube, perhaps you are experiencing problems with the media that is being downloaded instead of the add-on and the helper, let me know how that works.

Allso, try using tyilo's .xpi instead of mine like I sugested with the modified .json file that should bring up full functionality of the add-on :)