|
|
@ -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.5"
|
|
|
|
log "##### SCRIPT VERSION: 1.0.6"
|
|
|
|
log "##### DOCKER VERSION: $VERSION"
|
|
|
|
log "##### DOCKER VERSION: $VERSION"
|
|
|
|
log "##### CONFIGURATION VERIFICATION"
|
|
|
|
log "##### CONFIGURATION VERIFICATION"
|
|
|
|
|
|
|
|
|
|
|
@ -333,21 +333,13 @@ function Main {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${extension}" == "mkv" ]; then
|
|
|
|
|
|
|
|
log "========================START MKVPROPEDIT========================"
|
|
|
|
|
|
|
|
mkvpropedit "${basefilename}.${extension}" --add-track-statistics-tags
|
|
|
|
|
|
|
|
log "========================STOP MKVPROPEDIT========================="
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${VIDEO_SMA} = TRUE ]; then
|
|
|
|
if [ ${VIDEO_SMA} = TRUE ]; then
|
|
|
|
if [ -f "${basefilename}.${extension}" ]; then
|
|
|
|
if [ -f "${basefilename}.${extension}" ]; then
|
|
|
|
if [ -f /config/scripts/logs/sma.log ]; then
|
|
|
|
if [ -f /config/scripts/logs/sma.log ]; then
|
|
|
|
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 ""
|
|
|
|
log "========================START SMA========================"
|
|
|
|
log "Begin processing with Sickbeard MP4 Automator..."
|
|
|
|
|
|
|
|
log ""
|
|
|
|
|
|
|
|
# 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
|
|
|
|
log "Processing complete for: ${filename}!"
|
|
|
|
log "Processing complete for: ${filename}!"
|
|
|
@ -355,9 +347,15 @@ function Main {
|
|
|
|
log "ERROR: Sickbeard MP4 Automator Processing Error"
|
|
|
|
log "ERROR: Sickbeard MP4 Automator Processing Error"
|
|
|
|
rm "$video" && log "INFO: deleted: $filename"
|
|
|
|
rm "$video" && log "INFO: deleted: $filename"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
log "========================STOP SMA========================"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
log "===================================================="
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${extension}" == "mkv" ]; then
|
|
|
|
|
|
|
|
log "========================START MKVPROPEDIT========================"
|
|
|
|
|
|
|
|
mkvpropedit "${basefilename}.${extension}" --add-track-statistics-tags
|
|
|
|
|
|
|
|
log "========================STOP MKVPROPEDIT========================="
|
|
|
|
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
if [ ${VIDEO_SMA} = TRUE ] || [ ${VIDEO_MKVCLEANER} = TRUE ]; then
|
|
|
|
if [ ${VIDEO_SMA} = TRUE ] || [ ${VIDEO_MKVCLEANER} = TRUE ]; then
|
|
|
|