-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from siketyan/library
✨ Turn into library
- Loading branch information
Showing
8 changed files
with
267 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/target | ||
/Cargo.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
[package] | ||
name = "schetube" | ||
description = "A library to fetch upcoming live streams from a YouTube channel." | ||
version = "0.1.0" | ||
license = "MIT" | ||
license-file = "LICENCE.md" | ||
readme = "README.md" | ||
homepage = "https://github.com/siketyan/schetube" | ||
repository = "https://github.com/siketyan/schetube.git" | ||
documentation = "https://github.com/siketyan/schetube/#readme" | ||
keywords = ["rust-library", "youtube", "live-streams"] | ||
authors = ["Naoki Ikeguchi <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
# schetube | ||
A CLI tool to fetch upcoming live streams from a YouTube channel. | ||
A library to fetch upcoming live streams from a YouTube channel. | ||
|
||
## Installation | ||
``` | ||
$ git clone https://github.com/siketyan/schetube.git | ||
$ cd schetube | ||
$ cargo build --release | ||
$ ln -s "$(pwd)/target/release/schetube" /usr/local/bin/schetube | ||
## 📦 Installation | ||
```toml | ||
[dependencies] | ||
schetube = "0.1" | ||
``` | ||
|
||
## Usage | ||
## 💚 Example | ||
``` | ||
$ cd ./example | ||
$ cargo run [Channel ID] | ||
``` | ||
$ schetube [Channel ID] | ||
|
||
## 🔌 API | ||
```rust | ||
pub async fn fetch_upcoming_videos(channel_id: &str) -> Result<Vec<Video>, Box<dyn Error>>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
Oops, something went wrong.