Skip to content

Commit

Permalink
Add historyForSearching to baseConfig.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Oct 3, 2024
1 parent d31238e commit 5c3fa70
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/src/main/resources/config/baseConfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ searching:
generateQueries: "INTERNAL"
generateQueriesFormat: "TITLE"
globalCacheTimeMinutes: null
historyForSearching: 25
idFallbackToQueryGeneration: "NONE"
ignorePassworded: false
ignoreTemporarilyDisabled: false
Expand Down
11 changes: 10 additions & 1 deletion core/src/main/resources/static/js/nzbhydra.js
Original file line number Diff line number Diff line change
Expand Up @@ -7672,6 +7672,15 @@ function ConfigFields($injector) {
required: true,
tooltip: 'Found results are stored in the database for this long until they\'re deleted. After that any links to Hydra results still stored elsewhere become invalid. You can increase the limit if you want, the disc space needed is negligible (about 75 MB for 7 days on my server).'
}
}, {
key: 'historyForSearching',
type: 'horizontalInput',
templateOptions: {
type: 'number',
label: 'Recet searches in search bar',
required: true,
tooltip: 'The number of recent searches shown in the search bar dropdown (the <span class="glyphicon glyphicon-time"></span> icon).'
}
},
{
key: 'globalCacheTimeMinutes',
Expand Down Expand Up @@ -10410,7 +10419,7 @@ function SearchResultsController($stateParams, $scope, $q, $timeout, $document,
}
if (quickFilterRegexes.length !== 0) {
var allMatch = _.all(quickFilterRegexes, function (regex) {
return new RegExp(regex.toLowerCase().slice(1,-1)).test(item.title.toLowerCase());
return new RegExp(regex.toLowerCase().slice(1, -1)).test(item.title.toLowerCase());
})

if (!allMatch) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/static/js/nzbhydra.js.map

Large diffs are not rendered by default.

0 comments on commit 5c3fa70

Please sign in to comment.