Skip to content

Commit

Permalink
Fixed: Adding an indexer without using a preset was impossible. Closes
Browse files Browse the repository at this point in the history
…#514
  • Loading branch information
[email protected] authored and [email protected] committed Jan 21, 2017
1 parent 8ad466e commit 5424ce0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# NZB Hydra changelog

----------
### 0.2.186
Fixed: Adding an indexer without using a preset was impossible. See [#514](https://github.com/theotherp/nzbhydra/issues/514).

### 0.2.185
Fixed: Update library for handling dates and extended newznab time patterns to hopefully properly parse usenet dates from indexers that change their date format for no fucking reason. See [#512](https://github.com/theotherp/nzbhydra/issues/512).

Expand Down
3 changes: 2 additions & 1 deletion static/js/nzbhydra.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/js/nzbhydra.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion ui-src/js/config-fields-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,9 @@ function ConfigFields($injector) {
presets: function (model) {
return getIndexerPresets(model);
},

checkAddingAllowed: function (existingIndexers, preset) {
if (!(preset.type == "anizb" || preset.type == "binsearch" || preset.type == "nzbindex" || preset.type == "nzbclub")) {
if (!preset || !(preset.type == "anizb" || preset.type == "binsearch" || preset.type == "nzbindex" || preset.type == "nzbclub")) {
return true;
}
return !_.any(existingIndexers, function (existingEntry) {
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.185
0.2.186

0 comments on commit 5424ce0

Please sign in to comment.