boul2gom / yt-dlp

🎬️ A Rust library (with auto dependencies downloading) for yt-dlp
https://crates.io/crates/yt-dlp
GNU General Public License v3.0
8 stars 5 forks source link

Serde errors on fetching video info due to missing fields #6

Closed matous-volf closed 2 weeks ago

matous-volf commented 2 weeks ago

Similar to #5, but using the local yt-dlp does not fix it. The line and column from the Serde error refer to the field

{
    ...
    "comment_count": null
    ...
}

Clearly, yt-dlp is not able to parse some of the properties your Video struct requires. This field is null when fetching, for instance, https://www.youtube.com/watch?v=l7KUtymz9kA. It makes sense, as this video has comments disabled.

matous-volf commented 2 weeks ago

This happens for more fields than just this one.

This video: https://www.youtube.com/watch?v=UW9q5E99Uxc