Stacking: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>DonJ
No edit summary
>Sho
(added link to regexp)
Line 1: Line 1:
When using the 'File' view, XBMC has the ability to recognize 'multipart' videos based on filename rules. When a stacked selection is selected for playback, you must choose which part you wish to play. Only video files are examined for stacking possibility. There are currently two types of stacking which can be specified by using the 'Stacking' option in MyVideo:
When using the 'File' view, XBMC has the ability to recognize 'multipart' videos based on filename rules. When a stacked selection is selected for playback, you must choose which part you wish to play. Only video files are examined for stacking possibility. There are currently two types of stacking which can be specified by using the 'Stacking' option in MyVideo:


===Stacking Filename Syntax===
The regular expressions that control stacking can be changed in [[AdvancedSettings.xml#.3Cmoviestacking.3E|AdvancedSettings.xml]]
==Stacking Filename Syntax==
If a filename ends with specific types of strings (example: "-CD1", "-CD2" disregarding the extension), then multiple files will be collapsed into '''one file'''.<br>
If a filename ends with specific types of strings (example: "-CD1", "-CD2" disregarding the extension), then multiple files will be collapsed into '''one file'''.<br>



Revision as of 08:59, 30 April 2007

When using the 'File' view, XBMC has the ability to recognize 'multipart' videos based on filename rules. When a stacked selection is selected for playback, you must choose which part you wish to play. Only video files are examined for stacking possibility. There are currently two types of stacking which can be specified by using the 'Stacking' option in MyVideo:

The regular expressions that control stacking can be changed in AdvancedSettings.xml

Stacking Filename Syntax

If a filename ends with specific types of strings (example: "-CD1", "-CD2" disregarding the extension), then multiple files will be collapsed into one file.

The various formats can be summarized by the following:

[token][cd|part][num]

Where [token] is one of the following strings:

  • "-" (hyphen)
  • " " (blank)
  • "_" (underscore)
  • "." (dot)

Followed by the string "cd" or "part" (case insensitive).

[num] can be a number between 1 and 99.

The comparison is case insensitive.


For example, if you have the following two files (which both consist of a part of a movie):

  • MyVideo-CD1.avi
  • MyVideo-CD2.avi

They will be displayed in the file list as one file MyVideo.avi.