|
Copied from XBMC forum:
How about some examples as to how the filename convention should look for TV shows instead of the cryptic looking stuff you have in the profiles. This is how I name my TV shows. Star Trek Enterprise.S04E11-Observer Effect.avi Rescue Me.S03E02-Discovery.avi Eureka.S02E03-Unpredictable.avi Maybe you could have a list of real world name examples and then have the program fill in the cryptic code for you when you click the format you want. You really cant expect people to try and guess at how the filenames should be.
-----------
Answer:
Well, it really works just like XBMC, you essentially use a regular expression to describe what you want. Regular expressions are really the only way to do this sort of thing but they are extremely off-putting for people that are not familiar with them - and they indeed take a while getting used to. But again, it works like XBMC when it comes down to it.
Not sure whether you checked the forum over there but I answered some questions in regards to what to use already.
Your naming convention is just fine. Bear in mind that the code will rename according to its scheme (outlined in the readmes).
I can't really delve into what exactly a particular regular expression means but for your example you could specify
Season / episode: .*?[-\.]\s*[SX](\d{1,4})E(\d{1,4}).* Series: (.*?)\s*[-\.]\s*[SX]\d{1,4}E\d{1,4}.*
This will work with your current naming as well as what it will rename it to. Note that the code will look up the correct spelling of the show and make it 'filename safe' and also look up the correct name of the episode. But in the end it will look pretty much like what you have now.
I will copy the post to the prog forum. Beware that 0.45 has a bug and you should wait until 0.46 by the end of the week or use 0.44. |