fix: parsing playlists with empty videoInfo

This commit is contained in:
ThetaDev 2023-05-15 12:01:56 +02:00
parent c8e2d342c6
commit dc7bd7befc

View file

@ -163,7 +163,7 @@ pub(crate) struct PlaylistVideoRenderer {
/// Livestream: `["66K", " watching"]`
/// Upcoming: `["8", " waiting"]`
#[serde(default)]
#[serde_as(as = "Text")]
#[serde_as(as = "DefaultOnError<Text>")]
pub video_info: Vec<String>,
/// Contains Short/Live tag
#[serde(default)]