aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/sept_21.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2020-09-25 21:37:16 -0400
committerNathan Perry <np@nathanperry.dev>2020-09-25 21:37:16 -0400
commit87d92a93d8493e0264c381aa005bf9feaef976ed (patch)
treee719b45bbf1ca800bf05c2aa43dbfe7d8317b0dd /src/commands/today/sept_21.rs
parent0e3ea2f3f4cef9398141e894df6838ac5c07eb42 (diff)
reorganize 'today'
Diffstat (limited to 'src/commands/today/sept_21.rs')
-rw-r--r--src/commands/today/sept_21.rs41
1 files changed, 41 insertions, 0 deletions
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<TodayArgs> = 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())
+}