Fix bug and add dropdown (#241)

make-only-subtitle-default
HaveAGitGat 4 years ago committed by GitHub
parent 5bfe7bd474
commit 93164ba583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -103,7 +103,11 @@ const details = () => ({
type: 'string', type: 'string',
defaultValue: 'false', defaultValue: 'false',
inputUI: { inputUI: {
type: 'text', type: 'dropdown',
options: [
'false',
'true',
],
}, },
tooltip: `Input "true" if you want to skip SD (480p and 576p) files tooltip: `Input "true" if you want to skip SD (480p and 576p) files
@ -152,7 +156,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
// check if the file is SD and sdDisable is enabled // check if the file is SD and sdDisable is enabled
// skip this plugin if so // skip this plugin if so
if (['480p', '576p'].includes(file.video_resolution) && inputs.sdDisabled) { if (['480p', '576p'].includes(file.video_resolution) && inputs.sdDisabled === 'true') {
response.processFile = false; response.processFile = false;
response.infoLog += '☒File is SD, not processing\n'; response.infoLog += '☒File is SD, not processing\n';
return response; return response;

Loading…
Cancel
Save