name change; use youtube-dlc fork
This commit is contained in:
@@ -11,7 +11,7 @@ const SPACING: i32 = 16;
|
||||
fn build_ui(application: >k::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: >k::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: >k::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");
|
||||
|
||||
Reference in New Issue
Block a user