Skip to content

Commit

Permalink
fix: Add new "duration" field
Browse files Browse the repository at this point in the history
  • Loading branch information
Hejsil committed Jan 9, 2025
1 parent 44c8174 commit a4c1ac4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/database/Json.zig
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,24 @@ pub const Anime = struct {
synonyms: []const []const u8,
relatedAnime: []const []const u8,
tags: []const []const u8,
duration: Duration = .{
.value = 0,
.unit = .SECONDS,
},

const SeasonAndYear = struct {
season: Season,
year: u16 = 0,
};

const Duration = struct {
value: u16,
unit: Unit,

const Unit = enum {
SECONDS,
};
};
};

pub const Type = enum {
Expand Down

0 comments on commit a4c1ac4

Please # to comment.