2008-09-16, 14:43
markiz Wrote:Another, more XBMC Movie Companion, related question. Would it be possible to strip out information from the file/folder name when querying IMDB?
All my folders look like this "Everyones.Hero.DVDRip.XviD-LMG". It would be great if some of the information could be stripped out. Another example "Little.Miss.Sunshine.DVDRip.XviD-DiAMOND".
I suggest (\.(DVDRip|DVDScr)) and (\.XviD-[a-zA-Z]+) and (\.(Final|iNTERNAL|PROPER|WS)) should be stripped out using regular expressions.
Would this be possible? everyone names their movies differently.
Without sounding rude, is your naming not a bit excessive. XBMC and most other providers recommend just naming the movie "moviename (year)" that way without .nfo files you have more chance of scraping a match. Perhaps an easier naming approach and keeping the other details in a .txt file or even in the nfo file would be a better soultion. You could write a script to populate the folder data into a file. Or even keep a spreadsheet of the detials.
Whatever your current "media-center" software if you ever change it or add additional kit which does not use .nfo files the system will never identify the movies (with your folder names) if it has the ability to scrape IMDB.
Just a thought.