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

@ -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,