1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-17 21:26:22 -04:00

Added: Manual Import now adds year after movie title for filtering. This should help finding movies such as IT.

By searching e.g. It 2017, movies with short titles should be easily filterable now. Also displays more results (50 instead of 20)
This commit is contained in:
Leonardo Galli
2018-02-02 14:53:03 +01:00
parent 5f8aeeac17
commit d5832a6a07

View File

@@ -87,7 +87,7 @@ module.exports = Marionette.Layout.extend({
_filter : function (term) {
this.movieCollection.reset(this.fullMovieCollection.filter(function(model){
return (model.get("title") + " ("+model.get("year")+")").toLowerCase().indexOf(term.toLowerCase()) != -1;
return (model.get("title") + " "+model.get("year")+"").toLowerCase().indexOf(term.toLowerCase()) != -1;
}).slice(0, 50));
this._setModelCollection();