PDA

View Full Version : How to edit the <tvshowmatching> in advancedsettings.xml?


sebzero
2009-02-16, 18:21
Hi!
I'm trying to get the TV Shows section working!
I have following structure for my TV-Shows:

D:\How I Met Your Mother\Staffel 1\How I Met Your Mother - 1.01 - Pilot.avi
D:\How I Met Your Mother\Staffel 1\How I Met Your Mother - 1.02 - .......

One exception: If there are more than 9 seasons, there is a leading 0
-> e.g: \Staffel 9\.....- 09.01 -......avi

My problem: I don't know how to configure the <tvshowmatching> in my advancedsettings.xml for my type of formatting!
XBMC recognizes the different shows, but without any Episodes!
Anybody who can show me how I have to configure it?
Thanks a lot!

Splat
2009-02-17, 18:25
Have you checked here (http://xbmc.org/wiki/?title=TV_Shows)?

I found it easier to rename my tv series to match then try to figure out the xml settings.

For example:

How I Met Your Mother - 1.01 - Pilot.avi

If this was renamed to:

How I Met Your Mother - S01E01.avi

But the link has good tips on how to configure it to match your naming structure.

sebzero
2009-02-17, 21:45
Thanks for your reply!
I checked the link before but I didn't get that the only thing that matters is the order of appearance of the number of the season and episode!
Now I got it :-)

How I Met Your Mother - 1.01 - Pilot.avi
appearance: (# of season).(# of episode) - title.avi

<tvshowmatching>
<regexp>([0-9]+).[0]*([0-9]+) - [^\\/]*</regexp>
</tvshowmatching>

([0-9]+) <- season ( without leading 0)
. <- the way I seperated the information about the # of season/episode
[0]*([0-9]+) <- episode # with leading 0
- <- seperates the title from the rest
[^\\/]* <- title of episode

Maybe it helps another one one time!

P.S: I thought it was easier to set up three lines in the advancedsettings.xml ;)

Splat
2009-02-17, 23:34
Heh........that's good :nod:

I only had 2 TV shows to rename but this is good to know.

lloydsmart
2009-11-02, 16:02
Hi. Sorry to resurrect an old thread, but it's relevant to what I"m trying to achieve, and I didn't want to just be linked here if I asked the question in a new thread, lol!

Basically, I've just set up XBMC SVN on Linux (64bit Ubuntu Karmic), and everything is fine except I can't get all my TV shows to import.

My folder structure was created back when I used MediaPortal on Windows, and since I have literally thousands of episodes to import, renaming would be a major PITA.

The structure is: Series/Season #/## - Episode.ext

I've created the advancedsettings.xml file in ~/.xbmc/userdata/advancedsettings.xml, and here are its contents, which I copied straight from the Wiki:

<tvshowmatching>
<regexp>Season[\._ ]([0-9]+)[\\/]([0-9]+)[^\\/]*</regexp>
</tvshowmatching>

My episodes still don't import and I'm wondering what I'm doing wrong. My series all get imported fine, but in XBMC they show as containing no seasons or episodes, just empty series.

Anyone know what I'm doing wrong?

Thanks.

spiff
2009-11-02, 16:06
you didn't read the wiki did you ?

mind the <advancedsettings> tag.

Maxim
2009-11-02, 17:35
A debug log will also show you what's being imported from advancedsettings.xml.

lloydsmart
2009-11-03, 19:15
mind the <advancedsettings> tag.

Yup, that did the trick. Thanks!