Эх сурвалжийг харах

Update metadata.rs

Turns out unreleased tracks can have no forbidden and allowed lists at all, take care of that.
Evgeny S 7 жил өмнө
parent
commit
96c199e95a
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      src/metadata.rs

+ 1 - 0
src/metadata.rs

@@ -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))
 }