refactor!: rename VideoItem/VideoPlayerDetails.length to duration for consistency

This commit is contained in:
ThetaDev 2024-06-16 22:42:11 +02:00
parent 401d4e8255
commit 94e8d24c68
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
45 changed files with 1352 additions and 1352 deletions

View file

@ -157,10 +157,10 @@ pub struct VideoPlayerDetails {
pub name: String,
/// Video description in plaintext format
pub description: Option<String>,
/// Video length in seconds
/// Video duration in seconds
///
/// Is zero for livestreams
pub length: u32,
pub duration: u32,
/// Video thumbnail
pub thumbnail: Vec<Thumbnail>,
/// Channel of the video
@ -837,10 +837,10 @@ pub struct VideoItem {
pub id: String,
/// Video title
pub name: String,
/// Video length in seconds.
/// Video duration in seconds.
///
/// Is [`None`] for livestreams.
pub length: Option<u32>,
pub duration: Option<u32>,
/// Video thumbnail
pub thumbnail: Vec<Thumbnail>,
/// Channel of the video