Hello,
im new to all this. So hope someone can help me clear the issue.
i have some movies where nfo is missing. and i would like mediainfo to make a nfo file in the same directory if possible. i have a piece of code, that make a default nfo but no info about the video itself i i don't know how to make it
but if i read this correct it should go under the else statement?
and the issue is also that : /xxx/xxx/category can change.
Code:
defaultnfo="/home/xxxx/default.nfo"
i know it's ugly as hell
Code:
# set nfo files if [[ $(find ${incoming} -maxdepth 1 -iname \*.nfo | wc -l ) -gt 0 ]]; then
nfo=$(echo $(find ${incoming} -maxdepth 1 -iname \*.nfo))
echo NFO Exists $(basename "${nfo}") | tee -a log.txt
timestamp=$(date +%s)
cp "${nfo}" ${timestamp}.nfo
nfo=" --form nfo=@${timestamp}.nfo"
echo "${nfo}" | tee -a log.txt
else
echo "No NFO found for ${name}" | tee -a log.txt
nfo=" --form nfo=@${defaultnfo}"
fi
This one was a test but i think it's overkill to search all *.mkv
Code:
#cd /xxx/xxxx/
#find -name *.mkv -execdir mediainfo --LogFile={}.nfo {} \;
Bookmarks