From 87d92a93d8493e0264c381aa005bf9feaef976ed Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 25 Sep 2020 21:37:16 -0400 Subject: reorganize 'today' --- src/commands/today/sept_21.rs | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/commands/today/sept_21.rs (limited to 'src/commands/today/sept_21.rs') diff --git a/src/commands/today/sept_21.rs b/src/commands/today/sept_21.rs new file mode 100644 index 0000000..06689e8 --- /dev/null +++ b/src/commands/today/sept_21.rs @@ -0,0 +1,41 @@ +use super::prelude::*; + +lazy_static! { + static ref SEPT_21_CHOICES: Vec = vec![ + TodayArgs { + url: "https://www.youtube.com/watch?v=kPwG6L73-VU", + ..Default::default() + }, + TodayArgs { + url: "https://www.youtube.com/watch?v=fPpUYXZb2AA", + ..Default::default() + }, + TodayArgs { + url: "https://www.youtube.com/watch?v=CG7YHFT4hjw", + end: Some(Duration::seconds(69)), + ..Default::default() + }, + TodayArgs { + url: "https://www.youtube.com/watch?v=_hpU6UEq8hA", + end: Some(Duration::seconds(67)), + ..Default::default() + }, + TodayArgs { + url: "https://www.youtube.com/watch?v=_zzEDrYTkkg", + end: Some(Duration::seconds(68)), + ..Default::default() + }, + TodayArgs { + url: "https://www.youtube.com/watch?v=Gs069dndIYk", + ..Default::default() + }, + ]; +} + +pub fn sept_21(date: chrono::NaiveDate) -> TodayIter { + if (9, 21) != (date.month(), date.day()) { + return Box::new(empty()); + } + + Box::new(SEPT_21_CHOICES.iter().cloned()) +} -- cgit v1.3.1