(2013-06-09 20:25)m.savazzi Wrote: I renamed all of my files to have TMDB numbering
It's quite easy with TheAdvancedRenamer
I couldn't find that tool, but using Ember to set the season/episode #s in the NFO made the process of actually renaming all of the files to make XBMC happy an absurdly simple one.
Once Ember had generated the proper NFO files a simple Python program did the renaming for me.
The Python code simply finds all media files under the root path, parses the expected .NFO file and constructs an appropriate new base name based on the season/episode/title in the NFO file. It then renames the original base to the new one (i.e. Dr Who - blah blah* to S002E002_blah blah*). This includes the original media file, the NFO file, and any thumbnail files.
I needed to special case the title portion of the file name some to deal properly with Doctor Who reconstructed episode notation. Otherwise, I'd post the code for others.
After that ran successfully I then wrote another tiny program to take the "(reconstruction)" in the file name and migrated it into the .NFO <title> element so XBMC would show if the episode was reconstructed.
Trivia for the bored:
Some of Dr Who's original episodes were lost due to the BBC not archiving them properly and they were actually thrown away. The reconstructed episodes feature some video bits interspersed with either narration/episode audio and photos taking during the filming of the episode. Thus why it's interesting to know in XBMC if the episode is one of these reconstructed suckers.