mirror of
https://github.com/Jonny007-MKD/OTR-DecodeAll
synced 2025-01-22 08:49:50 +01:00
Use insane bibname for insane pathAbs
This commit is contained in:
parent
d2369d3436
commit
9a4e419ec6
1 changed files with 8 additions and 3 deletions
11
otrDecodeAll
11
otrDecodeAll
|
@ -40,7 +40,7 @@ function t_sigint {
|
||||||
}
|
}
|
||||||
|
|
||||||
function t_sighup {
|
function t_sighup {
|
||||||
# Do nothing
|
# Do nothing, simply continue
|
||||||
sleep 0
|
sleep 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -476,6 +476,7 @@ function funcMakeVars {
|
||||||
|
|
||||||
# This will be our name for the subfolder (movie name, e.g. Good.Wife)
|
# This will be our name for the subfolder (movie name, e.g. Good.Wife)
|
||||||
bibname=${filename%%_[0-9][0-9].*}
|
bibname=${filename%%_[0-9][0-9].*}
|
||||||
|
bibname="${bibname%%_S[0-9][0-9]E[0-9][0-9]}"
|
||||||
bibname="${bibname//_/.}"
|
bibname="${bibname//_/.}"
|
||||||
funcLog 5 "bibname: $bibname"
|
funcLog 5 "bibname: $bibname"
|
||||||
|
|
||||||
|
@ -538,17 +539,21 @@ function funcMakeVars {
|
||||||
fi
|
fi
|
||||||
fi # if we do not want to use labels
|
fi # if we do not want to use labels
|
||||||
|
|
||||||
pathAbsOutDecoded="$pathAbsOutDecoded/$bibname" # Append bibname: This is the series name or the movie name (Kodi likes this)
|
|
||||||
|
|
||||||
# Save the insane filename in case saneRenamix did not work once before
|
# Save the insane filename in case saneRenamix did not work once before
|
||||||
if [ $sanename != $filename ]; then # No sanename
|
if [ $sanename != $filename ]; then # No sanename
|
||||||
pathAbsOutDecodedInsane="$outDir/$pathAbsOutDecoded/$filename"
|
bibnameInsane=${filename%%_[0-9][0-9].*}
|
||||||
|
bibnameInsane="${bibnameInsane%%_S[0-9][0-9]E[0-9][0-9]}"
|
||||||
|
bibnameInsane="${bibnameInsane//_/.}"
|
||||||
|
pathAbsOutDecodedInsane="$outDir/$pathAbsOutDecoded/$bibnameInsane/$filename"
|
||||||
funcLog 5 "pathAbsOutDecodedInsane: $pathAbsOutDecodedInsane"
|
funcLog 5 "pathAbsOutDecodedInsane: $pathAbsOutDecodedInsane"
|
||||||
|
|
||||||
pathAbsOutCutInsane="$pathAbsOutDecodedInsane$cutAppendix"
|
pathAbsOutCutInsane="$pathAbsOutDecodedInsane$cutAppendix"
|
||||||
funcLog 5 "pathAbsOutCutInsane: $pathAbsOutCutInsane"
|
funcLog 5 "pathAbsOutCutInsane: $pathAbsOutCutInsane"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pathAbsOutDecoded="$pathAbsOutDecoded/$bibname" # Append bibname: This is the series name or the movie name (Kodi likes this)
|
||||||
|
|
||||||
# This will be the absolute path to the output file (e.g. /final/Good.Wife/Good.Wife..S05E14..Ein.paar.Worte.HQ.avi)
|
# This will be the absolute path to the output file (e.g. /final/Good.Wife/Good.Wife..S05E14..Ein.paar.Worte.HQ.avi)
|
||||||
pathAbsOutDecoded="$outDir/$pathAbsOutDecoded/$sanename"
|
pathAbsOutDecoded="$outDir/$pathAbsOutDecoded/$sanename"
|
||||||
funcLog 5 "pathAbsOutDecoded: $pathAbsOutDecoded"
|
funcLog 5 "pathAbsOutDecoded: $pathAbsOutDecoded"
|
||||||
|
|
Loading…
Reference in a new issue