#!/bin/bash
FILE=${1}
FN="$(echo ${FILE%.*})"
G=${2}
R=${3}
T=${4}
echo -e "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?>" > ${FN}.nfo
echo -e "<movie>" >> ${FN}.nfo
echo -e "<title>${T}</title>" >> ${FN}.nfo
echo -e "<userrating>10</userrating>" >> ${FN}.nfo
echo -e "<plot></plot>" >> ${FN}.nfo
echo -e "<runtime>${R}</runtime>" >> ${FN}.nfo
echo -e "<genre>${G}</genre>" >> ${FN}.nfo
echo -e "<genre>Family</genre>" >> ${FN}.nfo
echo -e "<genre>Watchtower</genre>" >> ${FN}.nfo
echo -e "<studio>Watchtower</studio>" >> ${FN}.nfo
echo -e "</movie>" >> ${FN}.nfo

