Previously we would map categories or map genres if we had no
categories.
Now we will also map genres if the category mappings fail to generate
any mappings. Current known category mapping always supply 'movie',
'series' or 'sports' so this should not happen.
Issue: #4594.
l = catmap_minor[v];
if (l) ret_minor.push(l)
}
- } else {
+ }
+
+ // If we have not mapped any categories, either
+ // due to only having OTA genres or due to categories
+ // not generating any matches, then check the genres.
+ // By default we don't do both category and genre
+ // mappings if we matched any categories since
+ // category mappings are normally more specific
+ // than genres.
+ if (ret_major.length == 0 && ret_minor.length == 0) {
// Genre code
var gen = rec.genre;
if (gen) {