add support for CommonNinja calendars
This commit is contained in:
parent
4140010bf2
commit
097745aeed
5 changed files with 166 additions and 18 deletions
|
@ -1,6 +1,6 @@
|
|||
//! Structs and functions specific to gathering input from ics files, which is a popular format that Google Calendar happens to put out
|
||||
|
||||
use super::{CalendarUi, DatePerhapsTime, Downloadable, EventInstance, Parameters};
|
||||
use super::{CalendarUi, DatePerhapsTime, EventInstance, Parameters, SimpleDownload};
|
||||
use anyhow::{Context as _, Result, anyhow};
|
||||
use base64::Engine as _;
|
||||
use chrono::TimeZone as _;
|
||||
|
@ -12,7 +12,7 @@ use std::{collections::BTreeSet, str::FromStr as _};
|
|||
#[derive(Clone, Default, Deserialize)]
|
||||
pub(crate) struct Config {
|
||||
#[serde(flatten)]
|
||||
pub(crate) dl: Downloadable,
|
||||
pub(crate) dl: SimpleDownload,
|
||||
|
||||
/// Magical ID we pass to Google to deep-link to Google Calendar events
|
||||
google_id: Option<String>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue