File tree 2 files changed +3
-3
lines changed
svdrp/src/main/java/vdr/jonglisto/svdrp/client
web/src/main/java/vdr/jonglisto/web/ui
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ class SvdrpClient {
296
296
}
297
297
}
298
298
299
- def isEpgsearchAvailable (String vdrName ) {
299
+ def isPluginAvailable (String vdrName , String pluginName ) {
300
300
val vdr = Configuration . get. getVdr(vdrName)
301
301
302
302
if (vdr == = null ) {
@@ -307,7 +307,7 @@ class SvdrpClient {
307
307
return false
308
308
}
309
309
310
- val p = getPlugins(vdr). stream. filter(s | s. plugin == " epgsearch " ). findFirst
310
+ val p = getPlugins(vdr). stream. filter(s | s. plugin. toLowerCase == pluginName . toLowerCase ). findFirst
311
311
if (p. isPresent) {
312
312
return true
313
313
}
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ abstract class BaseView extends VerticalLayout implements View {
146
146
changeVdr(Configuration . get. getVdr(event. selectedItem. get))
147
147
148
148
// check if epgsearch plugin is available in selectedVdr
149
- if (SvdrpClient . get. isEpgsearchAvailable (event. selectedItem. get)) {
149
+ if (SvdrpClient . get. isPluginAvailable (event. selectedItem. get, " epgsearch " )) {
150
150
epgsearchButton. visible = true
151
151
} else {
152
152
epgsearchButton. visible = false
You can’t perform that action at this time.
0 commit comments