Skip to content

Commit

Permalink
Add note for scenenzbs, fix font loading
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Aug 17, 2024
1 parent a11fba8 commit e5e0c7e
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 5 deletions.
6 changes: 5 additions & 1 deletion core/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ gulp.task('copy-assets', function () {
.pipe(cached("fonts2"))
.pipe(gulp.dest(fontDest));

var fonts3 = gulp.src("bower_components/bootstrap-less/fonts/*")
.pipe(cached("fonts3"))
.pipe(gulp.dest(fontDest));

var imgDest = staticFolder + '/img';
var img = gulp.src(uiSrcFolder + "/img/**/*")
.pipe(cached("images"))
Expand All @@ -182,7 +186,7 @@ gulp.task('copy-assets', function () {
.pipe(cached("favicon"))
.pipe(gulp.dest(staticFolder));

return merge(img, fonts1, fonts2, favIcon);
return merge(img, fonts1, fonts2, fonts3, favIcon);
});


Expand Down
3 changes: 3 additions & 0 deletions core/src/main/java/org/nzbhydra/web/WebConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {
// Must match the dependency for swagger-ui
.addResourceLocations("classpath:/META-INF/resources/webjars/swagger-ui/4.10.3/");

registry.addResourceHandler("/bower_components/bootstrap-less/fonts/**")
.addResourceLocations("classpath:/static/fonts/");

registry.setOrder(0);
}


@Override
protected void configurePathMatch(PathMatchConfigurer configurer) {
configurer.setUseTrailingSlashMatch(true);
Expand Down
4 changes: 4 additions & 0 deletions core/src/main/resources/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
text: "Filter NZBKing results for query words to get rid of some of the trash. See #960"
- type: "feature"
text: "Added SceneNZBs.com to indexer templates. If you want german or spanish results make sure to add the newznab IDs in the categories config. For example for german UHD movies add 2145. You can find out the IDs by browsing the categories on the indexer website."
- type: "feature"
text: "The config box shown when you add an indexer can now show additional information about an indexer. In this first instance you'll find the note about SceneNZBs. If you can think of stuff which should be shown for individual indexers please let me know."
- type: "Fix"
text: "Daniel Kastner fixed API access to NZBKing. See #965"
- type: "Fix"
text: "Improved title detection for NZBKing."
- type: "Fix"
text: "Some fonts could not be loaded since the UI rewrite."
final: true
- version: "v7.4.0"
date: "2024-08-10"
Expand Down
7 changes: 6 additions & 1 deletion core/src/main/resources/static/js/nzbhydra.js
Original file line number Diff line number Diff line change
Expand Up @@ -4170,6 +4170,10 @@ function _showBox(indexerModel, parentModel, isInitial, $uibModal, CategoriesSer
parentModel: function () {
return parentModel;
}
,
info: function () {
return indexerModel.info;
}
}
});

Expand Down Expand Up @@ -4429,7 +4433,8 @@ angular.module('nzbhydraApp').controller('IndexerConfigSelectionBoxInstanceContr
},
{
name: "SceneNZBs",
host: "https://scenenzbs.com"
host: "https://scenenzbs.com",
info: "If you want german or spanish results make sure to add the newznab IDs in the categories config.<br>For example for german UHD movies add 2145.<br>You can find out the IDs by browsing the categories on the indexer website."
},
{
name: "spotweb.com",
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/static/js/nzbhydra.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/src/main/resources/static/js/templates.js

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

5 changes: 5 additions & 0 deletions core/ui-src/html/config/indexer-config-box.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ <h3 class="modal-title">
</h3>
</div>
<div class="modal-body">
<div class="panel panel-default" ng-if="model.info">
<div class="panel-body ">
<span ng-bind-html="model.info | unsafe"></span>
</div>
</div>
<formly-form fields="fields"
model="model"
form="form"
Expand Down
7 changes: 6 additions & 1 deletion core/ui-src/js/config/formly-indexers.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,10 @@ function _showBox(indexerModel, parentModel, isInitial, $uibModal, CategoriesSer
parentModel: function () {
return parentModel;
}
,
info: function () {
return indexerModel.info;
}
}
});

Expand Down Expand Up @@ -863,7 +867,8 @@ angular.module('nzbhydraApp').controller('IndexerConfigSelectionBoxInstanceContr
},
{
name: "SceneNZBs",
host: "https://scenenzbs.com"
host: "https://scenenzbs.com",
info: "If you want german or spanish results make sure to add the newznab IDs in the categories config.<br>For example for german UHD movies add 2145.<br>You can find out the IDs by browsing the categories on the indexer website."
},
{
name: "spotweb.com",
Expand Down

0 comments on commit e5e0c7e

Please sign in to comment.