Naming video files/TV shows

From Official Kodi Wiki
< Naming video files
Revision as of 23:42, 28 March 2007 by >Blakholephysics (→‎See Also)
Jump to navigation Jump to search

The TV show lookup relies on the following conventions in order to work as advertised.

Incomplete.png INCOMPLETE:
This page or section is incomplete. Please add information or correct uncertain data which is marked with a ?

Directory Structure & File Names

The directory structure and filenames for tvshows have to be matched by the regular expressions set in tvshowmatching.

The defaults will match the following structures/filenames:

Custom Directory Structure & File Names

The directory structure and filenames for tvshows have to be matched by the regular expressions set in tvshowmatching.

\Battlestar Galactica\Season 3\01 - Occupation.avi will be matched by

<xml> <tvshowmatching>

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

</tvshowmatching> </xml>

  • works in BUILD SVN 8339 and greater *

### - Episode Title.extension : <xml> <regexp>([0-9]+)+([0-9][0-9]) - .*\.[a-zA-z0-9]+[^\\/]</regexp> </xml>

Example: \24\Season 6\601 - 6:00am to 7:00am.avi would trigger a match. (Season 6, Episode 1)

Example 2: \24\601 - 6:00am to 7:00am.avi would also match (Season 6, Episode 1)

  • Tested with SVN dated March 25th 2007.

See Also

http://www.xboxmediacenter.com/forum/showthread.php?t=25349 http://en.wikipedia.org/wiki/Regular_expressions

Regular Expression Testing: http://www.regextester.com/