From 5db15c323d76dca9ae71b0204d63dcb09fbbcbc5 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 29 Nov 2025 13:32:52 +0100 Subject: remove asset token; db json --- import/src/infojson.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'import/src/infojson.rs') diff --git a/import/src/infojson.rs b/import/src/infojson.rs index e0ebc43..ada6c3a 100644 --- a/import/src/infojson.rs +++ b/import/src/infojson.rs @@ -4,12 +4,11 @@ Copyright (C) 2025 metamuffin */ use anyhow::Context; -use bincode::{Decode, Encode}; use jellycommon::chrono::{format::Parsed, Utc}; use serde::{Deserialize, Serialize}; use std::collections::HashMap; -#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct YVideo { pub id: String, pub title: String, @@ -64,7 +63,7 @@ pub struct YVideo { pub epoch: usize, } -#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct YCaption { pub url: Option, pub ext: String, //"vtt" | "json3" | "srv1" | "srv2" | "srv3" | "ttml", @@ -72,7 +71,7 @@ pub struct YCaption { pub name: Option, } -#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct YFormat { pub format_id: String, pub format_note: Option, @@ -97,13 +96,13 @@ pub struct YFormat { pub format: String, } -#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct YFragment { pub url: Option, pub duration: Option, } -#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct YThumbnail { pub url: String, pub preference: Option, @@ -113,14 +112,14 @@ pub struct YThumbnail { pub resolution: Option, } -#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct YChapter { pub start_time: f64, pub end_time: f64, pub title: String, } -#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode)] +#[derive(Debug, Clone, Serialize, Deserialize)] pub struct YHeatmapSample { pub start_time: f64, pub end_time: f64, -- cgit v1.3