@@ -4,23 +4,32 @@ namespace ManuHub.Ytdlp.NET;
44
55public class Metadata
66{
7+ /// <summary>
8+ /// Video identifier
9+ /// </summary>
710 [ JsonPropertyName ( "id" ) ]
811 public string ? Id { get ; set ; } // playlist/video
912
1013 [ JsonPropertyName ( "_type" ) ]
1114 public string ? Type { get ; set ; } // playlist/video
1215
16+ /// <summary>
17+ /// Video title
18+ /// </summary>
1319 [ JsonPropertyName ( "title" ) ]
1420 public string ? Title { get ; set ; } // playlist/video
1521
22+ /// <summary>
23+ /// The description of the video
24+ /// </summary>
1625 [ JsonPropertyName ( "description" ) ]
1726 public string ? Description { get ; set ; } // playlist/video
1827
1928 [ JsonPropertyName ( "thumbnail" ) ]
2029 public string ? Thumbnail { get ; set ; } // video
2130
2231 [ JsonPropertyName ( "playlist_count" ) ]
23- public long PlaylistCount { get ; set ; } // playlist
32+ public long ? PlaylistCount { get ; set ; } // playlist
2433
2534 [ JsonPropertyName ( "categories" ) ]
2635 public List < string > ? Categories { get ; set ; } // video
@@ -71,13 +80,15 @@ public class Metadata
7180 [ JsonPropertyName ( "extractor_key" ) ]
7281 public string ? ExtractorKey { get ; set ; } // playlist/video
7382
74-
83+ /// <summary>
84+ /// How many users have watched the video on the platform
85+ /// </summary>
7586 [ JsonPropertyName ( "view_count" ) ]
76- public long ? ViewCount { get ; set ; } // playlist/video
87+ public float ? ViewCount { get ; set ; } // playlist/video
7788
7889
7990 [ JsonPropertyName ( "duration" ) ]
80- public double ? Duration { get ; set ; } // video
91+ public float ? Duration { get ; set ; } // video
8192
8293 [ JsonPropertyName ( "age_limit" ) ]
8394 public int ? AgeLimit { get ; set ; } // video
@@ -151,6 +162,9 @@ public class FormatMetadata
151162 [ JsonPropertyName ( "format_note" ) ]
152163 public string ? FormatNote { get ; set ; } //
153164
165+ /// <summary>
166+ /// Video filename extension
167+ /// </summary>
154168 [ JsonPropertyName ( "ext" ) ]
155169 public string ? Ext { get ; set ; } //
156170
@@ -317,7 +331,7 @@ public class Entry
317331 public string ? Description { get ; set ; }
318332
319333 [ JsonPropertyName ( "duration" ) ]
320- public int Duration { get ; set ; }
334+ public float Duration { get ; set ; }
321335
322336 [ JsonPropertyName ( "channel_id" ) ]
323337 public string ? ChannelId { get ; set ; }
@@ -340,7 +354,10 @@ public class Entry
340354 [ JsonPropertyName ( "thumbnails" ) ]
341355 public List < ThumbnailMetadata > ? Thumbnails { get ; set ; }
342356
357+ /// <summary>
358+ /// How many users have watched the video on the platform
359+ /// </summary>
343360 [ JsonPropertyName ( "view_count" ) ]
344- public int ViewCount { get ; set ; }
361+ public float ? ViewCount { get ; set ; }
345362
346363}
0 commit comments