Closed coding-moding closed 1 month ago
No problem, go ahead.
If you have any questions feel free to ask here :)
Here is how you could add a cli flag (even tho I might change it to use clap later, to make it more scalable): https://github.com/BKSalman/ytdlp-gui/blob/main/src/main.rs#L12-L29
This is where flags are passed to the application on startup: https://github.com/BKSalman/ytdlp-gui/blob/main/src/main.rs#L80
And then you can use it from here: https://github.com/BKSalman/ytdlp-gui/blob/main/src/lib.rs#L310
So the steps would be like this:
Config
structConfig
struct to the Settings
struct (already done in the code)new
function to initialize download_link
Hope this helps :)
Thanks for detailed explanation. Added the corresponding PR: https://github.com/BKSalman/ytdlp-gui/pull/38
Thanks for detailed explanation. Added the corresponding PR:
Thank you for contributing, will check it when I'm free 👍
merged #38 :) :+1:
I would like to add --url command line argument to be filled in download link text box. It's convinient to use to automatially open youtube links from browser. I would do PR if I know how to set download_link from fn main().