Compare commits

..

3 Commits

Author SHA1 Message Date
9cccb7af89
Ignore Cargo.lock
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-09-11 15:08:55 +01:00
b77c0cf50c
Remove Cargo.lock 2022-09-11 15:08:40 +01:00
2858158277
Figured out a ton of things now, Let's make an actual UI this time! 2022-09-11 15:05:26 +01:00
3 changed files with 12 additions and 7 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
/target
cargo.lock
Cargo.lock

View File

@ -7,7 +7,7 @@ pub fn inv() -> Result<(), Box<dyn Error>> {
let client = Client::new(String::from("https://invidious.projectsegfau.lt"));
let search_results = client.search(Some("q=rust programming"))?.items;
let video = client.video("5C_HPTJg5ek", None)?;
println!("{:?}", video.title);
println!("{:?}", video.views);
//println!("{:?}", video);
println!("{:?}", video.format_streams[2].url);
Ok(())
}

View File

@ -19,13 +19,14 @@ fn main() {
// Connect to "activate" signal of `app`
app.connect_activate(build_ui);
let output = inv::inv();
print!("{:?}", output);
//print!("{:?}", output);
// Run the application
app.run();
}
fn build_ui(app: &Application) {
// Create a button
let button = Button::builder()
@ -41,7 +42,11 @@ fn build_ui(app: &Application) {
//button.connect_clicked(move |_| trig_play());
let video = Video::for_file(Some(&gio::File::for_path("/home/midou/Vidéos/miui.mp4")));
//let output = inv::inv();
//let video = Video::for_media_stream(Some(&output));
/*
// Set a listBox