Talk:Adding videos to the library/Naming files/TV shows

From Official Kodi Wiki
Jump to navigation Jump to search

DVD number ordering

There is a preference when setting thetvdb.com scraper to be used which allows using the dvd order instead of the aired order

This should probably be mentioned somewhere on this page. Or maybe a new wiki page which is linked to on this page which provides instructions as well as known series that are affected by this, e.g. Batman: The Animated Series.

Additional regex for dated shows

Tried searching on the wiki and forums for a regex to match shows which are not sorted by season/ep but instead by date (example: The Daily Show with Jon Stewart). Finally through trial and error created the following regex which uses the bydate=true value on the regex (which I also couldn't find info of on the wiki):

 <regexp bydate=true>([0-9]+)[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[^\\/]*</regexp>

This works with filenames in the format:

 The Daily Show with Jon Stewart\The.Daily.Show.2012.02.27.Neil.DeGrasse.Tyson.HDTV.XviD-FQM.avi

Doesn't require the folder to be separately indexed with the "Selected folder contains a single TV show" option as I read elsewhere (I'm a bit of a neat freak and didn't want extra sources cluttering up the settings).

Consider adding to "Custom directory structure and file names" section? Didn't want to put it in straight away without comment as the first line in that section says XBMC will only look at series/episode and didn't want to confuse matters.

Note: Only tested with XBMC 11 Eden RC1 on ATV2. This might have been working before I created the advancedsettings.xml file, but after adding a few other tvshowmatching regexes it seemed to stop (even after adding back in the ones listed as default without a defaultsettings.xml file present).

Suggested content for article:

TV Shows using aired dates rather than series/episode (YYYY.MM.DD in the filename)

 <tvshowmatching>
  <regexp bydate=true>([0-9]+)[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[^\\/]*</regexp>
 </tvshowmatching>

Example : TV Shows\The Daily Show with Jon Stewart\The.Daily.Show.2012.02.27.Neil.DeGrasse.Tyson.HDTV.XviD-FQM.avi

Thoughts anyone? ReeKorl 19:04, 1 March 2012 (EST)