aboutsummaryrefslogtreecommitdiff
path: root/import/src/infojson.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-04 22:07:14 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-04 22:07:14 +0200
commit0a2f1d909aed3c807a30589aeca17f81c694dd37 (patch)
tree8684daa06b5c9a48636de9828d63ceae379b694f /import/src/infojson.rs
parentc3ff3320e0ba0085ada9603c3eeb7e557f037677 (diff)
downloadjellything-0a2f1d909aed3c807a30589aeca17f81c694dd37.tar
jellything-0a2f1d909aed3c807a30589aeca17f81c694dd37.tar.bz2
jellything-0a2f1d909aed3c807a30589aeca17f81c694dd37.tar.zst
show view count and likes
Diffstat (limited to 'import/src/infojson.rs')
-rw-r--r--import/src/infojson.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/import/src/infojson.rs b/import/src/infojson.rs
index 0ed496c..d9d60ed 100644
--- a/import/src/infojson.rs
+++ b/import/src/infojson.rs
@@ -26,8 +26,8 @@ pub struct YVideo {
pub playable_in_embed: bool,
pub automatic_captions: HashMap<String, Vec<YCaption>>,
pub comment_count: usize,
- pub chapters: Vec<YChapter>,
- pub heatmap: Vec<YHeatmapSample>,
+ pub chapters: Option<Vec<YChapter>>,
+ pub heatmap: Option<Vec<YHeatmapSample>>,
pub like_count: usize,
pub channel: String,
pub channel_follower_count: usize,