Compare commits
5 Commits
c4424b806f
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b34439cc9a | |||
| f851cdbc30 | |||
| 6d4c5f92dc | |||
| 09d9204ea5 | |||
| 3a7cb6c6a3 |
@@ -1,9 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "youtube-dl-gtk"
|
name = "media-downloader-gtk"
|
||||||
description = "a simple frontend for youtube-dl"
|
description = "a simple frontend for youtube-dlc"
|
||||||
version = "0.1.2"
|
version = "0.1.5"
|
||||||
authors = ["Max Bradbury <max@tinybird.info>"]
|
authors = ["Max Bradbury <max@tinybird.info>"]
|
||||||
repository = "https://tinybird.dev/max/youtube-dl-gtk"
|
repository = "https://tinybird.dev/max/media-downloader"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
15
README.md
15
README.md
@@ -1,6 +1,7 @@
|
|||||||
# youtube-dl-gtk
|
# media-downloader
|
||||||
|
|
||||||
a simple graphical frontend for the `youtube-dl` media downloader.
|
a simple graphical frontend for the `youtube-dl` media downloader.
|
||||||
|
`youtube-dl` must be installed and in your PATH.
|
||||||
|
|
||||||
really just an experiment in creating my first desktop program, so don't expect too much.
|
really just an experiment in creating my first desktop program, so don't expect too much.
|
||||||
|
|
||||||
@@ -14,5 +15,15 @@ extract audio and convert to mp3
|
|||||||
|
|
||||||
## known problems
|
## known problems
|
||||||
|
|
||||||
|
no validation for URL bar
|
||||||
|
|
||||||
|
no user feedback
|
||||||
|
|
||||||
will hang after clicking "go!" due to `youtube-dl` being executed in the same thread.
|
will hang after clicking "go!" due to `youtube-dl` being executed in the same thread.
|
||||||
there is no user feedback so this basically looks like the program crashing.
|
there is no user feedback so this basically looks like the program crashing.
|
||||||
|
|
||||||
|
TODO: investigate using https://crates.io/crates/gtk-future-executor
|
||||||
|
|
||||||
|
would it be possible to add progress bars for in-progress downloads somehow?
|
||||||
|
|
||||||
|
notifications for when downloads finish?
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const SPACING: i32 = 16;
|
|||||||
fn build_ui(application: >k::Application) {
|
fn build_ui(application: >k::Application) {
|
||||||
let window = gtk::ApplicationWindow::new(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_border_width(SPACING as u32);
|
||||||
window.set_position(gtk::WindowPosition::Center);
|
window.set_position(gtk::WindowPosition::Center);
|
||||||
window.set_default_size(400, 100);
|
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_placeholder_text(Some("Enter URL here"));
|
||||||
input_url.set_input_purpose(InputPurpose::Url);
|
input_url.set_input_purpose(InputPurpose::Url);
|
||||||
|
|
||||||
horizontal.set_homogeneous(true);
|
horizontal.set_homogeneous(true);
|
||||||
|
|
||||||
window.add(&vertical);
|
window.add(&vertical);
|
||||||
@@ -60,7 +60,7 @@ fn build_ui(application: >k::Application) {
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let application = gtk::Application::new(
|
let application = gtk::Application::new(
|
||||||
Some("dev.tinybird.max.youtube-dl-gtk"),
|
Some("dev.tinybird.max.media-downloader"),
|
||||||
Default::default()
|
Default::default()
|
||||||
).expect("Initialization failed...");
|
).expect("Initialization failed...");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user