about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-09 20:45:40 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-09 20:45:40 +0200
commitc787885284c07ce931226d0e6213f25984b5259d (patch)
tree7c9e4a995cdc9dcc59e875218d241b04d2b6a15a /sys/nixpkgs/pkgs
parentrefactor(sys/pkgs/comments): Use better direnv api, instead of bare `.env` file (diff)
downloadnixos-config-c787885284c07ce931226d0e6213f25984b5259d.tar.gz
nixos-config-c787885284c07ce931226d0e6213f25984b5259d.zip
fix(sys/pkgs/comments): Don't require `sponsorblock_chapters`
This field is not always available.
Diffstat (limited to 'sys/nixpkgs/pkgs')
-rw-r--r--sys/nixpkgs/pkgs/comments/src/info_json.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nixpkgs/pkgs/comments/src/info_json.rs b/sys/nixpkgs/pkgs/comments/src/info_json.rs
index e7e6209b..eca4fae3 100644
--- a/sys/nixpkgs/pkgs/comments/src/info_json.rs
+++ b/sys/nixpkgs/pkgs/comments/src/info_json.rs
@@ -44,7 +44,7 @@ pub struct InfoJson {
     pub was_live: bool,
     pub epoch: u32,
     pub comments: Vec<Comment>,
-    pub sponsorblock_chapters: Vec<SponsorblockChapter>,
+    pub sponsorblock_chapters: Option<Vec<SponsorblockChapter>>,
     pub format: String,
     pub format_id: String,
     pub ext: String,