diff options
Diffstat (limited to 'src/helix/models.rs')
-rw-r--r-- | src/helix/models.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/helix/models.rs b/src/helix/models.rs index 47a1288..4c1566c 100644 --- a/src/helix/models.rs +++ b/src/helix/models.rs @@ -56,8 +56,11 @@ pub struct Video { pub published_at: DateTime<Utc>, #[serde(with = "url_serde")] pub url: Url, - #[serde(with = "url_serde")] - pub thumbnail_url: Url, + /*FIXME: Serde will attempt to parse an empty string. + * In this case this should be None when thumbnail_url is an empty string + */ + //#[serde(with = "url_serde")] + pub thumbnail_url: String, //Option<Url>, pub viewable: String, pub view_count: i32, pub language: String, |