forked from j62/ctbrec
1
0
Fork 0

Take model description into account when filtering

This commit is contained in:
0xboobface 2020-03-19 18:40:18 +01:00
parent 8ae30ab6eb
commit 0107f1d008
1 changed files with 3 additions and 1 deletions

View File

@ -831,8 +831,10 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
for (String tag : m.getTags()) {
searchTextBuilder.append(tag).append(' ');
}
int[] resolution = Optional.ofNullable(m.getStreamResolution(true)).orElse(new int[2]);
int[] resolution = Optional.ofNullable(ThumbCell.resolutionCache.getIfPresent(m)).orElse(new int[2]);
searchTextBuilder.append(resolution[1]);
searchTextBuilder.append(' ');
searchTextBuilder.append(Optional.ofNullable(m.getDescription()).orElse(""));
return searchTextBuilder.toString().trim();
}