name change; use youtube-dlc fork

This commit is contained in:
2020-11-11 12:48:47 +00:00
parent 3a7cb6c6a3
commit 09d9204ea5
3 changed files with 21 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ const SPACING: i32 = 16;
fn build_ui(application: &gtk::Application) {
let window = gtk::ApplicationWindow::new(application);
window.set_title("youtube-dl");
window.set_title("media downloader");
window.set_border_width(SPACING as u32);
window.set_position(gtk::WindowPosition::Center);
window.set_default_size(400, 100);
@@ -24,7 +24,7 @@ fn build_ui(application: &gtk::Application) {
input_url.set_placeholder_text(Some("Enter URL here"));
input_url.set_input_purpose(InputPurpose::Url);
horizontal.set_homogeneous(true);
window.add(&vertical);
@@ -40,7 +40,7 @@ fn build_ui(application: &gtk::Application) {
button.connect_clicked(move |_| {
let url = input_url.get_buffer().get_text();
println!("url: {}", url);
let mut youtube_dl = Command::new("youtube-dl");
let mut youtube_dl = Command::new("youtube-dlc");
if convert_to_mp3.get_active() {
println!("convert to mp3: true");