You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
483 B
17 lines
483 B
import { createSelector } from 'reselect';
|
|
import createMovieSelector from './createMovieSelector';
|
|
|
|
function createMovieQualityProfileSelector(movieId) {
|
|
return createSelector(
|
|
(state) => state.settings.qualityProfiles.items,
|
|
createMovieSelector(movieId),
|
|
(qualityProfiles, movie = {}) => {
|
|
return qualityProfiles.find((profile) => {
|
|
return profile.id === movie.qualityProfileId;
|
|
});
|
|
}
|
|
);
|
|
}
|
|
|
|
export default createMovieQualityProfileSelector;
|