You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
819 B
Bash
20 lines
819 B
Bash
ROOTPATH="/var/www/nextcloud/data/grayhook/files/"
|
|
INDIR="Torrents"
|
|
OUTDIR="Archive/Anime"
|
|
#ORIGNAME="[Kawaiika-Raws] (2016) KonoSuba S1 [BDRip 1920x1080 HEVC FLAC]"
|
|
ORIGNAME="[Kawaiika-Raws] (2017) KonoSuba S2 [BDRip 1920x1080 HEVC FLAC]"
|
|
NAME="KonoSuba"
|
|
OUTPUTPATH="${ROOTPATH}/${OUTDIR}/${NAME}"
|
|
INPUTPATH="${ROOTPATH}/${INDIR}/${ORIGNAME}"
|
|
|
|
[ -e "${ROOTPATH}/${OUTDIR}/${NAME}" ] || exit -1;
|
|
paste -d '\n' \
|
|
<(find "$INPUTPATH" -maxdepth 1 -name '*.mkv' | sort) \
|
|
<(find "$INPUTPATH/RUS Sound" -name '*crunchyroll*.mka' | sort) \
|
|
<(find "$INPUTPATH" -maxdepth 1 -name '*.mkv' | sort | \
|
|
sed -e "s/.*S2E\([0-9]\{2\}\) .*/${OUTPUTPATH//\//\\\/}\/${NAME} s02e\1.mkv/g") | \
|
|
xargs -d '\n' printf '"%s" "%s" "%s"\n' | \
|
|
xargs -n 3 \
|
|
ffmpeg_add_audio_into_video \
|
|
;
|