fix: parsing video details for DRM-restricted movies

This commit is contained in:
ThetaDev 2023-08-04 01:26:26 +02:00
parent b752b6ea9b
commit 43ed52daf9
12 changed files with 15 additions and 13 deletions

View file

@ -567,7 +567,7 @@ pub struct VideoDetails {
#[serde(with = "time::serde::rfc3339::option")]
pub publish_date: Option<OffsetDateTime>,
/// Textual video publishing date (e.g. `Aug 2, 2013`, depends on language)
pub publish_date_txt: String,
pub publish_date_txt: Option<String>,
/// Is the video a livestream?
pub is_live: bool,
/// Is the video published under the Creative Commons BY 3.0 license?