mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Update metadata.rs
Turns out unreleased tracks can have no forbidden and allowed lists at all, take care of that.
This commit is contained in:
parent
8bd9174370
commit
96c199e95a
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ fn parse_restrictions<'s, I>(restrictions: I, country: &str, catalogue: &str) ->
|
|||
}
|
||||
}
|
||||
|
||||
(has_forbidden || has_allowed) &&
|
||||
(!has_forbidden || !countrylist_contains(forbidden.as_str(), country)) &&
|
||||
(!has_allowed || countrylist_contains(allowed.as_str(), country))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue