diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-07-24 16:20:34 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-07-24 16:20:34 +0200 |
commit | a9fddbeebf428eb57c60afab96fbbd38629a636e (patch) | |
tree | 480d9c1ae6f43598bfff7e4a29a378691b0a7508 /crates/yt_dlp/update.sh | |
parent | fix(crates/yt/{commands/playlist,videos/format_video}): Correctly calculate w... (diff) | |
download | yt-a9fddbeebf428eb57c60afab96fbbd38629a636e.zip |
fix(treewide): Use `json_try_get!` instead of `json.get(..).map(|| ..)`
`json.get` will return `Some(Value::Null)` if the json key exists but has been set to `null`. This is obviously not what we want, and as such we also need to check that the value is not null, before calling map. The `json_try_get!` macro does exactly that.
Diffstat (limited to 'crates/yt_dlp/update.sh')
0 files changed, 0 insertions, 0 deletions