refactor!: rename VideoItem/VideoPlayerDetails.length to duration for consistency
This commit is contained in:
parent
401d4e8255
commit
94e8d24c68
45 changed files with 1352 additions and 1352 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue