|
|
@ -11,7 +11,7 @@ function Configuration {
|
|
|
|
log "##### SABnzbd Category: $category"
|
|
|
|
log "##### SABnzbd Category: $category"
|
|
|
|
log "##### DOCKER: $TITLE"
|
|
|
|
log "##### DOCKER: $TITLE"
|
|
|
|
log "##### SCRIPT: Video Post Processor ($TITLESHORT)"
|
|
|
|
log "##### SCRIPT: Video Post Processor ($TITLESHORT)"
|
|
|
|
log "##### SCRIPT VERSION: 1.0.9"
|
|
|
|
log "##### SCRIPT VERSION: 1.0.10"
|
|
|
|
log "##### DOCKER VERSION: $VERSION"
|
|
|
|
log "##### DOCKER VERSION: $VERSION"
|
|
|
|
log "##### CONFIGURATION VERIFICATION"
|
|
|
|
log "##### CONFIGURATION VERIFICATION"
|
|
|
|
|
|
|
|
|
|
|
@ -169,6 +169,15 @@ function Main {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -f "${basefilename}.mkv" ]; then
|
|
|
|
|
|
|
|
statistics="true"
|
|
|
|
|
|
|
|
log "===START MKVPROPEDIT"
|
|
|
|
|
|
|
|
mkvpropedit "${basefilename}.mkv" --add-track-statistics-tags
|
|
|
|
|
|
|
|
log "===STOP MKVPROPEDIT"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
statistics="false"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${VIDEO_MKVCLEANER} = TRUE ]; then
|
|
|
|
if [ ${VIDEO_MKVCLEANER} = TRUE ]; then
|
|
|
|
log "Begin processing with MKV Cleaner..."
|
|
|
|
log "Begin processing with MKV Cleaner..."
|
|
|
|
log "Checking for \"${VIDEO_LANG}\" video/audio/subtitle tracks"
|
|
|
|
log "Checking for \"${VIDEO_LANG}\" video/audio/subtitle tracks"
|
|
|
@ -332,7 +341,7 @@ function Main {
|
|
|
|
chmod 777 /config/scripts/logs/sma.log
|
|
|
|
chmod 777 /config/scripts/logs/sma.log
|
|
|
|
chown abc:abc /config/scripts/logs/sma.log
|
|
|
|
chown abc:abc /config/scripts/logs/sma.log
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
log "========================START SMA========================"
|
|
|
|
log "===START SMA"
|
|
|
|
# Manual run of Sickbeard MP4 Automator
|
|
|
|
# Manual run of Sickbeard MP4 Automator
|
|
|
|
if python3 /usr/local/sma/manual.py --config "/config/scripts/configs/$5-sma.ini" -i "${basefilename}.${extension}" $tagging; then
|
|
|
|
if python3 /usr/local/sma/manual.py --config "/config/scripts/configs/$5-sma.ini" -i "${basefilename}.${extension}" $tagging; then
|
|
|
|
sleep 0.01
|
|
|
|
sleep 0.01
|
|
|
@ -340,14 +349,17 @@ function Main {
|
|
|
|
log "ERROR: SMA Processing Error"
|
|
|
|
log "ERROR: SMA Processing Error"
|
|
|
|
rm "$video" && log "INFO: deleted: $filename"
|
|
|
|
rm "$video" && log "INFO: deleted: $filename"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
log "========================STOP SMA========================"
|
|
|
|
log "===STOP SMA"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$statistics" == "false" ]; then
|
|
|
|
if [ -f "${basefilename}.mkv" ]; then
|
|
|
|
if [ -f "${basefilename}.mkv" ]; then
|
|
|
|
log "========================START MKVPROPEDIT========================"
|
|
|
|
log "===START MKVPROPEDIT"
|
|
|
|
mkvpropedit "${basefilename}.mkv" --add-track-statistics-tags
|
|
|
|
mkvpropedit "${basefilename}.mkv" --add-track-statistics-tags
|
|
|
|
log "========================STOP MKVPROPEDIT========================="
|
|
|
|
log "===STOP MKVPROPEDIT"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
statistics="false"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
log "Processing complete for: ${filename}!"
|
|
|
|
log "Processing complete for: ${filename}!"
|
|
|
|
done
|
|
|
|
done
|
|
|
|