I’ve never managed to get mythvideo to find coverart and metadata for all of my videos, but I have discovered that a lot of it has to do with the naming of your video files. So I thought I would share some tips and tricks for getting metadata and coverart to work on mythvideo.
1. Understand the file naming conventions found here –> http://www.mythtv.org/wiki/MythVideo_File_Parsing. Originally I had all of my files named in this format:
I found that the tmdb.py metadata script used by mythtv didn’t use the date to help isolate the video and hence there were too many videos returned from themoviedb.org and mythvideo didn’t know which one to choose. By removing the brackets, I found that I fixed heaps of videos immediately, as the date helped to resolve multiple returned results.
eg. Back.to.the.future.(1985).mp4 would return 9 possible results.
But Back.to.the.future.1985.mp4 would only return 1.
2. Use the correct spelling – I found quite a few videos with incorrect spelling. This cause the metadata not to be found.
Eg. How.to.loose.a.guy.in.ten.day.2003.mp4 should be How.to.lose.a.guy.in.ten.day.2003.mp4
Also watch for words spelt differently in different countries.
eg. Dont.tell.mum.the.Babysitters.Dead.1991.mp4 should be Dont.tell.mom.the.Babysitters.Dead.1991.mp4
3. Numbers are not well liked. I had heaps and heaps of trouble trying to work out these sort of filenames. I think there is a limitation with the tmdb.py script used in mythvideo as themoviedb.org site resolved these fine but not mythvideo.
I found the easiest way to deal with these filenames was to put the number inside a set of single quotation marks ‘ ‘. So would would get the following instead.
4. Punctuation can cause issues. I found some of my files names with punctuation can fail to find metadata. The simple fix is to remove the offending punctuation.
eg. Dirty.Dancing.-.Havana.Nights.2004.avi –> Dirty.Dancing.Havana.Nights.2004.avi