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
|
|
@ -445,7 +445,7 @@ impl<T> YouTubeListMapper<T> {
|
|||
VideoItem {
|
||||
id: video.video_id,
|
||||
name: video.title,
|
||||
length: length_text.and_then(|txt| util::parse_video_length(&txt)),
|
||||
duration: length_text.and_then(|txt| util::parse_video_length(&txt)),
|
||||
thumbnail: video.thumbnail.into(),
|
||||
channel: video
|
||||
.channel
|
||||
|
|
@ -500,7 +500,7 @@ impl<T> YouTubeListMapper<T> {
|
|||
VideoItem {
|
||||
id: video.video_id,
|
||||
name: video.headline,
|
||||
length: None,
|
||||
duration: None,
|
||||
thumbnail: video.thumbnail.into(),
|
||||
channel: self.channel.clone(),
|
||||
publish_date: pub_date_txt.as_ref().and_then(|txt| {
|
||||
|
|
@ -564,7 +564,7 @@ impl<T> YouTubeListMapper<T> {
|
|||
VideoItem {
|
||||
id: video.video_id,
|
||||
name: video.title,
|
||||
length: video.length_seconds,
|
||||
duration: video.length_seconds,
|
||||
thumbnail: video.thumbnail.into(),
|
||||
channel,
|
||||
publish_date,
|
||||
|
|
|
|||
Reference in a new issue