jeanslack / Videomass

Videomass is a free, open source and cross-platform GUI for FFmpeg and yt-dlp
https://jeanslack.github.io/Videomass/
GNU General Public License v3.0
1.06k stars 49 forks source link

External Downloader Support #222

Closed samarthshrivas closed 1 year ago

samarthshrivas commented 1 year ago

Added yt_dlp opts for external downloader and updated gui [incomplete].

jeanslack commented 1 year ago

Thanks again so much @samarthshrivas,

Since you have added the new options on the preferences dialog, you need to add them to the settings_manager.py and advance a VERSION number (for example from the current 5.9 to 6.0) to make them also written in the configuration file .

But I see that you only added the controls on the preferences dialog and didn't bind them (there is no event handler yet). I think I'll do that job myself if you have no experience with wxPython.

[EDIT] First of all, have you made sure that this implementation works on Videomass? I mean, have you even tried directly testing your new additions in ydl_opts? like this:

ydl_opts = {
               ...,
               ...,
                'external_downloader': '/usr/bin/aria2c', # None for default
                'external_downloader_args': '-x 2 -j 2', # List should be passed ["-j", "1", "-x", "1", "-s", "1"]
            }

Finally, in order to collaborate on this PR I need to be able to modify its code. Please have a look at Allowing changes to a pull request branch created from a fork.

See you soon.

samarthshrivas commented 1 year ago

First of all, have you made sure that this implementation works on Videomass? I mean, have you even tried directly testing your new additions in ydl_opts?

Yes i tested it in seperate script. It works!. But when using external downloader progress bas in videomass does not work. (progress bas not implemented in yt-dlp for external downloader)

Yt-dlp currently supports native, aria2c, avconv, axel, curl, ffmpeg, httpie, wget as external downloader. Docs

Also Allow edits by maintainers is checked. image

samarthshrivas commented 1 year ago

Hello @jeanslack
In 32a7689 almost everything is done.

Progress bar in videomass works only when downloaders is set to None (default)

jeanslack commented 1 year ago

Hello @samarthshrivas

In 32a7689 almost everything is done.

Excellent!

Progress bar in videomass works only when downloaders is set to None (default)

Uhm... some might complain about this. That's okay though, I make the fixes for the linter, add a few more things for completeness, and merge it all together.

samarthshrivas commented 1 year ago

@jeanslack Thank you for your help and guidance with this pull request. I just wanted to let you know that this was my first time contributing to an open source project, and I really appreciate your help in making the process smooth and easy to understand. Thanks again for all your work on this project!

jeanslack commented 1 year ago

Closes #218