Skip to content

twiclo/youtube-dl-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-dl-rs

Runs youtube-dl and parses its JSON output. Example:

  let output = YoutubeDl::new("https://www.youtube.com/watch?v=VFbhKZFzbzk")
      .socket_timeout("15")
      .run()
      .unwrap();
  let title = match output {
      YoutubeDlOutput::SingleVideo(video) => video.title,
      _ => panic!("single video should not be a playlist")  
  };
  println!("Video title: {}", title);

About

A youtube-dl wrapper for Rust

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%