2010-01-16, 16:31
Yes, I found both columns but both don't contain reliable data.
Now I just added something like this to differentiate between movies and tvshows:
It requires special storagegroup configuration in mythtv but it works 100%.
BTW, I think I found a small break in logic while adding above mentioned modification (or maybe I just misread your code): You are reading the ProgramID and check if it is "MV", "EP" or "SH". But before searching TheTVDB you test if there is a subtitle present to check if it is a movie or a tvshow (if [ ! -z "$2" ]; then...).
Now I just added something like this to differentiate between movies and tvshows:
Code:
RecordedTVShowsDir=/home/lom/Videos/Aufnahmen/Serien
RecordedMoviesDir=/home/lom/Videos/Aufnahmen/Filme
RecordedDocsDir=/home/lom/Videos/Aufnahmen/Dokus
...
test "$originaldirname" = "$RecordedTVShowsDir" && IsShowMovieOrDocumentary="tvshow"
test "$originaldirname" = "$RecordedMoviesDir" && IsShowMovieOrDocumentary="movie"
test "$originaldirname" = "$RecordedDocsDir" && IsShowMovieOrDocumentary="doc"
...
if [ "$IsShowMovieOrDocumentary" = "tvshow" ]; then
...
fi
It requires special storagegroup configuration in mythtv but it works 100%.
BTW, I think I found a small break in logic while adding above mentioned modification (or maybe I just misread your code): You are reading the ProgramID and check if it is "MV", "EP" or "SH". But before searching TheTVDB you test if there is a subtitle present to check if it is a movie or a tvshow (if [ ! -z "$2" ]; then...).