mirror of
https://github.com/Jonny007-MKD/OTR-DecodeAll
synced 2025-01-22 08:49:50 +01:00
This commit is contained in:
parent
e4d62cdb9f
commit
8f8273a8a7
1 changed files with 8 additions and 1 deletions
|
@ -90,7 +90,7 @@ function funcPerformXbmcCheck {
|
||||||
|
|
||||||
# Parse the parameters
|
# Parse the parameters
|
||||||
function funcParam {
|
function funcParam {
|
||||||
while getopts "frkvh?e:p:i:o:d:t:" optval; do
|
while getopts "frkvh?e:p:i:o:d:t:l:" optval; do
|
||||||
case $optval in
|
case $optval in
|
||||||
"f")
|
"f")
|
||||||
funcLog 4 "Set forceRun = 1"
|
funcLog 4 "Set forceRun = 1"
|
||||||
|
@ -123,6 +123,9 @@ function funcParam {
|
||||||
"c")
|
"c")
|
||||||
funcLog 4 "Set delugeDir = $OPTARG"
|
funcLog 4 "Set delugeDir = $OPTARG"
|
||||||
delugeDir=$OPTARG;; # different deluge dir
|
delugeDir=$OPTARG;; # different deluge dir
|
||||||
|
"l")
|
||||||
|
funcLog 4 "Set labelFilter = $OPTARG"
|
||||||
|
labelFilter=$OPTARG;;
|
||||||
"h"|"?")
|
"h"|"?")
|
||||||
funcHelp; # print help
|
funcHelp; # print help
|
||||||
exit;;
|
exit;;
|
||||||
|
@ -260,6 +263,10 @@ function funcProcessFiles {
|
||||||
funcMakeVars $file
|
funcMakeVars $file
|
||||||
echo -e " >> \033[32m$sanename\033[37m";
|
echo -e " >> \033[32m$sanename\033[37m";
|
||||||
|
|
||||||
|
if [ -n "$labelFilter" ] && [[ "$labelFilter" != "$label" ]]
|
||||||
|
funcLog 4 "Label did not match filter. Skipping";
|
||||||
|
continue;
|
||||||
|
fi
|
||||||
if [ -z "$label" ]; then
|
if [ -z "$label" ]; then
|
||||||
funcLog 1 "No label specified for this movie. Skipping"
|
funcLog 1 "No label specified for this movie. Skipping"
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue