MQ4 Episode Naming Schemes In XBMC?
#1
I have updated this post to help clarify my question.

I have renamed all my TV Shows to this naming scheme:

Example :

True Blood - Season 1\True Blood - 1.1.mkv
True Blood - Season 1\True Blood - 1.2.mkv
True Blood - Season 1\True Blood - 1.3.mkv
True Blood - Season 1\True Blood - 1.9.mkv
True Blood - Season 1\True Blood - 1.10.mkv
True Blood - Season 1\True Blood - 1.11.mkv = (True Blood - s1e11.mkv)

Ancient Aliens - Season 2\Ancient Aliens - 2.1.mkv
Ancient Aliens - Season 2\Ancient Aliens - 2.2.mkv
Ancient Aliens - Season 2\Ancient Aliens - 2.3.mkv
Ancient Aliens - Season 2\Ancient Aliens - 2.9.mkv
Ancient Aliens - Season 2\Ancient Aliens - 2.10.mkv
Ancient Aliens - Season 2\Ancient Aliens - 2.11.mkv = (Ancient Aliens - s2e11.mkv)

And of course I am having problems getting metadata from the scraper.

The scraper works if I change the . to x but xbmc doesn't like it when I try to change the x back to .

Example :
xbmc will read........ True Blood - 1x1.nfo
xbmc will not read.. .True Blood - 1.1.nfo

So really, I just need to get xbmc to read True Blood - 1.1.nfo.

OR

I don't want xbmc to auto name my episode to 1x01. Strange Love

I want the episode named 1.1 - Strange Love
... and xbmc doesn't let you rename the entire episode string.

I checked (http://wiki.xbmc.org/) and saw that it said,
"You can make your own naming conventions / rules by adding or editing regular expressions in the advancedsettings.xml file, with the tvshowmatching tag"

I don't know how to code xml but have tried a few things based on the information provided in the wiki. I've been unable to get anything to work.

The main issue is the file name.... it's not so much a directory issue....

Could someone help me with the advancedsettings.xml file or another way to get this to work?

TIA for any help with this..
____________________________________________________________________________

The XBMC Wiki provides the information I pasted below.
http://wiki.xbmc.org/index.php?title=Add...s/TV_shows
_____________________________________________________________________________

Custom directory structure and file names You can make your own naming conventions / rules by adding or editing regular expressions in the advancedsettings.xml file, with the tvshowmatching tag. When enumerating episodes for a series, XBMC only cares about the season and episode, so when designing regexps you should only be concerned with these things.

Here are several common naming schemes and corresponding regexps and examples.

\Season #\## (Season# is at very end of directory name, and filename starts with episode name, neither have to be a specific number of digits) :

<tvshowmatching>
<regexp>Season[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
</tvshowmatching>Example : \Battlestar Galactica\Season 3\01 - Occupation.avi (Season 3, Episode 1)


### ([season#][episode#] with nothing in between all in filename, assumes episode number is always 2 digits) :


<tvshowmatching>
<regexp>([0-9]+)([0-9][0-9])[^\\/]*</regexp>
</tvshowmatching>Example : \24\Season 6\601 - 6:00am to 7:00am.avi (Season 6, Episode 1)
Example 2 : \Lost\Season 1\Lost - 101.avi (Season 1, Episode 1)
Example 3 : \24\601 - 6:00am to 7:00am.avi (Season 6, Episode 1)


##x## ([season#]x[episode#] all in filename :

<tvshowmatching>
<regexp>([0-9]+)x([0-9]+)[^\\/]*</regexp>
</tvshowmatching>Example : \Scrubs\Season 1\1x01.Pilot.avi (Season 1, Episode 1)

If you use leading 0's (for example, \Scrubs\01x01 - Pilot.avi instead of 1x1), and are having difficulty getting the TV Show scraper to work, try

##x## ([season#]x[episode#] all in filename :

<tvshowmatching>
<regexp>[0]*([0-9]+)x[0]*([0-9]+)[^\\/]*</regexp>
</tvshowmatching>Example : \Scrubs\Season 1\01x01.Pilot.avi (Season 1, Episode 1) which simply strips leading 0's from the result.

s##e## (s[season#]e[episode#] at beginning of filename)

<tvshowmatching>
<regexp>[\\/]s([0-9]+)e([0-9]+)</regexp>
</tvshowmatching>Example : videos\mytv-comedy\Scrubs\season 1\s01e01 - Pilot (hdtv.xvid).avi

Season ## - Episode ## (Season [season#] - Episode [episode#] in the beginning or middle of filename)

<tvshowmatching>
<regexp>Season ([0-9]+) - Episode ([0-9]+)[^\\/]*</regexp>
</tvshowmatching>Example : TV Shows\Scrubs\Season 1\Scrubs - Season 1 - Episode 01 - Pilot.avi

TV Shows in DVD Folders Using the same directory structures as above, you can name DVD folders by adding the following xml to advancedsettings.xml. This information was gleaned from forum thread http://www.xbmc.org/forum/showthread.php?t=55497.

<tvshowmatching append="no">
<regexp>\[[Ss]([0-9]+)\]_\[[Ee]([0-9]+)\]?([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
<regexp>[\._ \[\-\\/]([0-9]+)x([0-9]+)([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
<regexp>[Ss]([0-9]+)[\.\-]?[Ee]([0-9]+)([^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
<regexp>[\._ \-\\/]([0-9]+)([0-9][0-9])([\._ \-][^\\/]*)(?:(?:[\\/]video_ts)[\\/]video_ts.ifo)?</regexp>
</tvshowmatching>
Reply
#2
Is there a reason why you want to stick to that file naming scheme in particular?
Reply
#3
I don't like the xbmc default naming scheme, I thought it was caused by the metadata and I was trying to fix it with renaming the .nfo or creating a advancedsettings.xml but it's not, so if there were episode naming schemes to choose from then I wouldn't have to be stuck with the default episode naming.

Where I was really running into a problem was if the TV Show didn't get added to the Library it would populate X's in the episode title and I don't like X's.
It will populate X's to items in the Library but only under all seasons.

I was trying to replace the X's with .'s
Reply
#4
I have always kept it very simple.

<tvshowmatching action="prepend">
<regexp>Season[\._ ]([0-9]+)[\\/]([0-9]+)*.*</regexp>
</tvshowmatching>

Took a while to get it working. My folder structure is this:

F:\XBMC TV Shows 1\How I Met Your Mother\Season 03\04.avi

This has scraped fine from scratch through XBMC 9, 10 and now nightlies.
Reply
#5
I just leave em alone. I use xbmc so I don't need to screw around with folders or file names. Instead you get an Episode Name. Couldn't care less what the file is named...
Reply
#6
Man! why do people complicate things!

1. if you name your TVShows as abba77 does then it makes it impossible to do a quick search on a Show outside of XBMC, how can you search by filename? What happens if you decide to use another front end that does not support folder names?
2. Using a "." in a file name is never a good thing the "." is meant to separate the filename from the extension. I realise that it is widely used now but it can confuse certain Operating Systems and again can limit the use of your library on other systems/front ends.

Future proof yourself and use naming that can easily be tracked and searched outside of XBMC;

I name all my TVShows;

TVShow Name (S01E03).mkv = Basic naming
TVShow Name (S01E03) (BluRay) (720p).mkv = GIves me a BluRay cover/Tag
TVShow Name (S01E03) (HDTV) (720p).mkv = Gives a HDTV cover/Tag.
TVShow Name (S01E03) (DVD).mkv = Gives a DVD cover/Tag.

The others; (WEB), (PDTV)

The (720p) part can be used by XBMC but it will also scrape that info from the metadata in the file so is not necessary but it helps me no end in managing my library outside of XBMC. I do not bother with Audio tags in the filename

I can search all my shows outside of XBMC for any important variable, HDTV rips, 1080p rips etc...

NEVER had any issues scraping this naming convention in to XBMC or using Ember or Media Companion to scrape outside of XBMC.

Reply
#7
while mine may be too simple for other uses, i did it for ease for XBMC. Shows and seasons are grouped in folders, so its very easy to browse to the file; 3 level structure. search seems irrelevant to me. on the other hand, if i ever need the file name to be "TVShow Name (S01E03).mkv", i can do a batch rename very easily.

i understand your point, but XBMC is it for me.
Reply
#8
I was not having a dig at your convention, yours works as it scrapes the info correctly and it is obviously your choise to name them that way. For me as I have over 22,000 episodes it makes my life so much easier to be able to use DOpus to search for pretty much anything and move things around or play them on other devices etc...

There are numerous threads about the naming conventions and in reality is is just a little common sense. :-)
Reply

Logout Mark Read Team Forum Stats Members Help
MQ4 Episode Naming Schemes In XBMC?0