diff options
Diffstat (limited to 'src/commands/today/pianoman.rs')
| -rw-r--r-- | src/commands/today/pianoman.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/commands/today/pianoman.rs b/src/commands/today/pianoman.rs index d2f11a5..5cc7382 100644 --- a/src/commands/today/pianoman.rs +++ b/src/commands/today/pianoman.rs @@ -2,10 +2,19 @@ use super::prelude::*; lazy_static! { static ref TARGET_TIME: chrono::NaiveTime = chrono::NaiveTime::from_hms(21, 0, 0); + + static ref PIANOMANS: Vec<TodayArgs> = vec![ + by_url("https://www.youtube.com/watch?v=gxEPV4kolz0"), + TodayArgs { + url: "https://www.youtube.com/watch?v=gxEPV4kolz0", + start: Some(Duration::seconds(30)), + end: Some(Duration::seconds(34)), + } + ]; } pub fn pianoman(dt: chrono::NaiveDateTime) -> TodayIter { - if dt.weekday() != chrono::Weekday::Fri { + if dt.weekday() != chrono::Weekday::Sat { return Box::new(empty()); } @@ -22,5 +31,5 @@ pub fn pianoman(dt: chrono::NaiveDateTime) -> TodayIter { return Box::new(empty()); } - Box::new(once(by_url("https://www.youtube.com/watch?v=gxEPV4kolz0"))) + Box::new(PIANOMANS.iter().cloned()) } |
