2017-04-23, 14:19
I ran into this as well and if you have a bash shell this script will remove some of the empty fields:
I run it through a 'find' command that cleans up all the .nfo files like this:
Code:
#!/bin/bash
if [[ -z $1 ]]; then
FILESPEC="*.nfo"
else
FILESPEC=$1
fi
#echo ${FILESPEC}
sed -i -e 's/<runtime><\/runtime>//' -e 's/<rating><\/rating>//' -e 's/<votes><\/votes>//' -e 's/<top250><\/top250>//' "${FILESPEC}"
I run it through a 'find' command that cleans up all the .nfo files like this:
Code:
find . -mindepth 2 -maxdepth 2 -name \*.nfo -execdir ~/other_remove_empty_fields.sh {} \;