<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Muddysteel</id>
	<title>Official Kodi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Muddysteel"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/Muddysteel"/>
	<updated>2026-07-05T08:57:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241490</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241490"/>
		<updated>2022-01-30T23:06:43Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
=== Adjust MakeMKV for the first disc. ===&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Transcode the first disc. ===&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Adjust MakeMKV for the second disc. ===&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Transcode the second disc. ===&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Using some &amp;quot;shell&amp;quot; wizardry, rename the new files. ===&lt;br /&gt;
{| style=&amp;quot;border-collapse:collapse; border-color:#000000; border-style:solid; border-width:2px;&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Line&lt;br /&gt;
!Command&lt;br /&gt;
|-&lt;br /&gt;
|1 || style=&amp;quot;font-family: monospace;&amp;quot; | OFFSET=3&lt;br /&gt;
|-&lt;br /&gt;
|2 || style=&amp;quot;font-family: monospace;&amp;quot; | for PRIOR_NAME in *-${OFFSET}-*;do&lt;br /&gt;
|-&lt;br /&gt;
|3 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&lt;br /&gt;
|-&lt;br /&gt;
|4 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&lt;br /&gt;
|-&lt;br /&gt;
|5 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|6 || style=&amp;quot;font-family: monospace;&amp;quot; | done&lt;br /&gt;
|}&lt;br /&gt;
# Each line explained in detail&lt;br /&gt;
## Set a variable named OFFSET to the value of 3.&lt;br /&gt;
## Loop over all the files in the current directory that match the GLOB pattern of &amp;lt;code&amp;gt;*-3-*&amp;lt;/code&amp;gt;, and for each one found do..&lt;br /&gt;
## Handle in three sub-shells:&lt;br /&gt;
### echo the file name into &amp;lt;code&amp;gt;sed&amp;lt;/code&amp;gt; and substitute out all but the &amp;quot;session&amp;quot; part of the name.&lt;br /&gt;
### With that result, add the OFFSET of &amp;quot;3&amp;quot; to the value found.&lt;br /&gt;
### With that result, pad it out with a leading &amp;quot;0&amp;quot;.&lt;br /&gt;
## Using the PRIOR_NAME of the file, substitute the &amp;quot;new&amp;quot; to-be-used name.&lt;br /&gt;
## Move the file and for each one use the &amp;quot;&amp;lt;code&amp;gt;-i&amp;lt;/code&amp;gt;&amp;quot; option to ensure existing files are not overwritten.&lt;br /&gt;
&lt;br /&gt;
=== Final Results ===&lt;br /&gt;
After executing the above shell commands, the directory contents will now be: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E04.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E05.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E06.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
[[Category:How-to]]&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241487</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241487"/>
		<updated>2022-01-30T03:26:14Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
=== Adjust MakeMKV for the first disc. ===&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Transcode the first disc. ===&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Adjust MakeMKV for the second disc. ===&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Transcode the second disc. ===&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Using some &amp;quot;shell&amp;quot; wizardry, rename the new files. ===&lt;br /&gt;
{| style=&amp;quot;border-collapse:collapse; border-color:#000000; border-style:solid; border-width:2px;&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Line&lt;br /&gt;
!Command&lt;br /&gt;
|-&lt;br /&gt;
|1 || style=&amp;quot;font-family: monospace;&amp;quot; | OFFSET=3&lt;br /&gt;
|-&lt;br /&gt;
|2 || style=&amp;quot;font-family: monospace;&amp;quot; | for PRIOR_NAME in *-${OFFSET}-*;do&lt;br /&gt;
|-&lt;br /&gt;
|3 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&lt;br /&gt;
|-&lt;br /&gt;
|4 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&lt;br /&gt;
|-&lt;br /&gt;
|5 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|6 || style=&amp;quot;font-family: monospace;&amp;quot; | done&lt;br /&gt;
|}&lt;br /&gt;
# Each line explained in detail&lt;br /&gt;
## Set a variable named OFFSET to the value of 3.&lt;br /&gt;
## Loop over all the files in the current directory that match the GLOB pattern of &amp;lt;code&amp;gt;*-3-*&amp;lt;/code&amp;gt;, and for each one found do..&lt;br /&gt;
## Handle in three sub-shells:&lt;br /&gt;
### echo the file name into &amp;lt;code&amp;gt;sed&amp;lt;/code&amp;gt; and substitute out all but the &amp;quot;session&amp;quot; part of the name.&lt;br /&gt;
### With that result, add the OFFSET of &amp;quot;3&amp;quot; to the value found.&lt;br /&gt;
### With that result, pad it out with a leading &amp;quot;0&amp;quot;.&lt;br /&gt;
## Using the PRIOR_NAME of the file, substitute the &amp;quot;new&amp;quot; to-be-used name.&lt;br /&gt;
## Move the file and for each one use the &amp;quot;&amp;lt;code&amp;gt;-i&amp;lt;/code&amp;gt;&amp;quot; option to ensure existing files are not overwritten.&lt;br /&gt;
&lt;br /&gt;
=== Final Results ===&lt;br /&gt;
After executing the above shell commands, the directory contents will now be: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E04.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E05.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E06.mkv&amp;lt;/code&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241486</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241486"/>
		<updated>2022-01-30T03:24:41Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{| style=&amp;quot;border-collapse:collapse; border-color:#000000; border-style:solid; border-width:2px;&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Line&lt;br /&gt;
!Command&lt;br /&gt;
|-&lt;br /&gt;
|1 || style=&amp;quot;font-family: monospace;&amp;quot; | OFFSET=3&lt;br /&gt;
|-&lt;br /&gt;
|2 || style=&amp;quot;font-family: monospace;&amp;quot; | for PRIOR_NAME in *-${OFFSET}-*;do&lt;br /&gt;
|-&lt;br /&gt;
|3 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&lt;br /&gt;
|-&lt;br /&gt;
|4 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&lt;br /&gt;
|-&lt;br /&gt;
|5 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|6 || style=&amp;quot;font-family: monospace;&amp;quot; | done&lt;br /&gt;
|}&lt;br /&gt;
# Each line explained in detail&lt;br /&gt;
## Set a variable named OFFSET to the value of 3.&lt;br /&gt;
## Loop over all the files in the current directory that match the GLOB pattern of &amp;lt;code&amp;gt;*-3-*&amp;lt;/code&amp;gt;, and for each one found do..&lt;br /&gt;
## Handle in three sub-shells:&lt;br /&gt;
### echo the file name into &amp;lt;code&amp;gt;sed&amp;lt;/code&amp;gt; and substitute out all but the &amp;quot;session&amp;quot; part of the name.&lt;br /&gt;
### With that result, add the OFFSET of &amp;quot;3&amp;quot; to the value found.&lt;br /&gt;
### With that result, pad it out with a leading &amp;quot;0&amp;quot;.&lt;br /&gt;
## Using the PRIOR_NAME of the file, substitute the &amp;quot;new&amp;quot; to-be-used name.&lt;br /&gt;
## Move the file and for each one use the &amp;quot;&amp;lt;code&amp;gt;-i&amp;lt;/code&amp;gt;&amp;quot; option to ensure existing files are not overwritten.&lt;br /&gt;
# After executing the above shell commands, the directory contents will now be: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E04.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E05.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E06.mkv&amp;lt;/code&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241485</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241485"/>
		<updated>2022-01-30T03:22:34Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{| style=&amp;quot;border-collapse:collapse; border-color:#000000; border-style:solid; border-width:2px;&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Line&lt;br /&gt;
!Command&lt;br /&gt;
|-&lt;br /&gt;
|1 || style=&amp;quot;font-family: monospace;&amp;quot; | OFFSET=3&lt;br /&gt;
|-&lt;br /&gt;
|2 || style=&amp;quot;font-family: monospace;&amp;quot; | for PRIOR_NAME in *-${OFFSET}-*;do&lt;br /&gt;
|-&lt;br /&gt;
|3 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&lt;br /&gt;
|-&lt;br /&gt;
|4 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&lt;br /&gt;
|-&lt;br /&gt;
|5 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|6 || style=&amp;quot;font-family: monospace;&amp;quot; | done&lt;br /&gt;
|}&lt;br /&gt;
# Each line explained in detail&lt;br /&gt;
## Set a variable named OFFSET to the value of 3.&lt;br /&gt;
## Loop over all the files in the current directory that match the GLOB pattern of &amp;lt;code&amp;gt;*-3-*&amp;lt;/code&amp;gt;, and for each one found do..&lt;br /&gt;
## Handle in three sub-shells:&lt;br /&gt;
### echo the file name into &amp;lt;code&amp;gt;sed&amp;lt;/code&amp;gt; and substitute out all but the &amp;quot;session&amp;quot; part of the name.&lt;br /&gt;
### With that result, add the OFFSET of &amp;quot;3&amp;quot; to the value found.&lt;br /&gt;
### With that result, pad it out with a leading &amp;quot;0&amp;quot;.&lt;br /&gt;
## Using the PRIOR_NAME of the file, substitute the &amp;quot;new&amp;quot; to-be-used name.&lt;br /&gt;
## Move the file and for each one use the &amp;quot;&amp;lt;code&amp;gt;-i&amp;lt;/code&amp;gt;&amp;quot; option to ensure existing files are not overwritten.&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241484</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241484"/>
		<updated>2022-01-30T03:18:06Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{| style=&amp;quot;border-collapse:collapse; border-color:#000000; border-style:solid; border-width:2px;&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Line&lt;br /&gt;
!Command&lt;br /&gt;
|-&lt;br /&gt;
|1 || style=&amp;quot;font-family: monospace;&amp;quot; | OFFSET=3&lt;br /&gt;
|-&lt;br /&gt;
|2 || style=&amp;quot;font-family: monospace;&amp;quot; | for PRIOR_NAME in *-${OFFSET}-*;do&lt;br /&gt;
|-&lt;br /&gt;
|3 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&lt;br /&gt;
|-&lt;br /&gt;
|4 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&lt;br /&gt;
|-&lt;br /&gt;
|5 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|6 || style=&amp;quot;font-family: monospace;&amp;quot; | done&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241483</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241483"/>
		<updated>2022-01-30T03:16:45Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{| style=&amp;quot;border: 1px;&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Line&lt;br /&gt;
!Command&lt;br /&gt;
|-&lt;br /&gt;
|1 || style=&amp;quot;font-family: monospace;&amp;quot; | OFFSET=3&lt;br /&gt;
|-&lt;br /&gt;
|2 || style=&amp;quot;font-family: monospace;&amp;quot; | for PRIOR_NAME in *-${OFFSET}-*;do&lt;br /&gt;
|-&lt;br /&gt;
|3 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&lt;br /&gt;
|-&lt;br /&gt;
|4 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&lt;br /&gt;
|-&lt;br /&gt;
|5 || style=&amp;quot;font-family: monospace;&amp;quot; | &amp;amp;nbsp;&amp;amp;nbsp;mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|6 || style=&amp;quot;font-family: monospace;&amp;quot; | done&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241482</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241482"/>
		<updated>2022-01-30T03:15:15Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Line&lt;br /&gt;
!Command&lt;br /&gt;
|-&lt;br /&gt;
|1 || style=&amp;quot;font-family: monospace;&amp;quot; | OFFSET=3&lt;br /&gt;
|-&lt;br /&gt;
|2 || style=&amp;quot;font-family: monospace;&amp;quot; | for PRIOR_NAME in *-${OFFSET}-*;do&lt;br /&gt;
|-&lt;br /&gt;
|3 || style=&amp;quot;font-family: monospace;&amp;quot; |   ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&lt;br /&gt;
|-&lt;br /&gt;
|4 || style=&amp;quot;font-family: monospace;&amp;quot; |   NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&lt;br /&gt;
|-&lt;br /&gt;
|5 || style=&amp;quot;font-family: monospace;&amp;quot; |   mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|6 || style=&amp;quot;font-family: monospace;&amp;quot; | done&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241481</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241481"/>
		<updated>2022-01-30T03:12:11Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Line&lt;br /&gt;
!Command&lt;br /&gt;
|-&lt;br /&gt;
|1 || &amp;lt;code&amp;gt;OFFSET=3&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|2 || &amp;lt;code&amp;gt;for PRIOR_NAME in *-${OFFSET}-*;do&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|3 || &amp;lt;code&amp;gt;  ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|4 || &amp;lt;code&amp;gt;  NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|5 || &amp;lt;code&amp;gt;  mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|6 ||&amp;lt;code&amp;gt;done&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241480</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241480"/>
		<updated>2022-01-30T03:11:20Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{|&lt;br /&gt;
|+&lt;br /&gt;
!Line&lt;br /&gt;
!Command&lt;br /&gt;
|-&lt;br /&gt;
|1 || &amp;lt;code&amp;gt;OFFSET=3&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|2 || &amp;lt;code&amp;gt;for PRIOR_NAME in *-${OFFSET}-*;do&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|3 || &amp;lt;code&amp;gt;  ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|4 || &amp;lt;code&amp;gt;  NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|5 || &amp;lt;code&amp;gt;  mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|6 ||&amp;lt;code&amp;gt;done&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241479</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241479"/>
		<updated>2022-01-30T03:09:44Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{|&lt;br /&gt;
|+&lt;br /&gt;
Line&lt;br /&gt;
Command&lt;br /&gt;
|-&lt;br /&gt;
1&lt;br /&gt;
&amp;lt;code&amp;gt;OFFSET=3&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
2&lt;br /&gt;
&amp;lt;code&amp;gt;for PRIOR_NAME in *-${OFFSET}-*;do&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
3&lt;br /&gt;
&amp;lt;code&amp;gt;  ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
4&lt;br /&gt;
&amp;lt;code&amp;gt;  NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
5&lt;br /&gt;
&amp;lt;code&amp;gt;  mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
6&lt;br /&gt;
&amp;lt;code&amp;gt;done&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241478</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241478"/>
		<updated>2022-01-30T03:08:53Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
! Line || Command&lt;br /&gt;
|-&lt;br /&gt;
 1 || &amp;lt;code&amp;gt;OFFSET=3&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
 2 || &amp;lt;code&amp;gt;for PRIOR_NAME in *-${OFFSET}-*;do&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
 3 || &amp;lt;code&amp;gt;  ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
 4 || &amp;lt;code&amp;gt;  NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
 5 || &amp;lt;code&amp;gt;  mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
 6 || &amp;lt;code&amp;gt;done&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241477</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241477"/>
		<updated>2022-01-30T03:08:32Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{|&lt;br /&gt;
! Line || Command&lt;br /&gt;
|-&lt;br /&gt;
 1 || &amp;lt;code&amp;gt;OFFSET=3&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
 2 || &amp;lt;code&amp;gt;for PRIOR_NAME in *-${OFFSET}-*;do&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
 3 || &amp;lt;code&amp;gt;  ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
 4 || &amp;lt;code&amp;gt;  NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
 5 || &amp;lt;code&amp;gt;  mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
 6 || &amp;lt;code&amp;gt;done&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241476</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241476"/>
		<updated>2022-01-30T03:08:09Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
{|&lt;br /&gt;
! Line || Command&lt;br /&gt;
|- 1 || &amp;lt;code&amp;gt;OFFSET=3&amp;lt;/code&amp;gt;&lt;br /&gt;
|- 2 || &amp;lt;code&amp;gt;for PRIOR_NAME in *-${OFFSET}-*;do&amp;lt;/code&amp;gt;&lt;br /&gt;
|- 3 || &amp;lt;code&amp;gt;  ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&amp;lt;/code&amp;gt;&lt;br /&gt;
|- 4 || &amp;lt;code&amp;gt;  NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
|- 5 || &amp;lt;code&amp;gt;  mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|- 6 || &amp;lt;code&amp;gt;done&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241469</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241469"/>
		<updated>2022-01-30T03:01:51Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&amp;lt;code&amp;gt;&amp;lt;br/&amp;gt;1  OFFSET=3&amp;lt;br/&amp;gt;2  for PRIOR_NAME in *-${OFFSET}-*;do&amp;lt;br/&amp;gt;3    ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&amp;lt;br/&amp;gt;4    NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&amp;lt;br/&amp;gt;5    mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&amp;lt;br/&amp;gt;6  done&amp;lt;/code&amp;gt;&lt;br /&gt;
# The prior info explained, line-by-line:&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241468</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241468"/>
		<updated>2022-01-30T03:01:30Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&amp;lt;code&amp;gt;1  OFFSET=3&amp;lt;br/&amp;gt;2  for PRIOR_NAME in *-${OFFSET}-*;do&amp;lt;br/&amp;gt;3    ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&amp;lt;br/&amp;gt;4    NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&amp;lt;br/&amp;gt;5    mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&amp;lt;br/&amp;gt;6  done&amp;lt;/code&amp;gt;&lt;br /&gt;
# The prior info explained, line-by-line:&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241453</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241453"/>
		<updated>2022-01-30T03:00:31Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&amp;lt;code&amp;gt;&lt;br /&gt;
1  OFFSET=3&amp;lt;br/&amp;gt;&lt;br /&gt;
2  for PRIOR_NAME in *-${OFFSET}-*;do&lt;br /&gt;
3    ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&lt;br /&gt;
4    NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&lt;br /&gt;
5    mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&lt;br /&gt;
6  done&amp;lt;/code&amp;gt;&lt;br /&gt;
# The prior info explained, line-by-line:&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241391</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241391"/>
		<updated>2022-01-30T02:58:31Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&amp;lt;pre&amp;gt;&lt;br /&gt;
1  OFFSET=3&lt;br /&gt;
2  for PRIOR_NAME in *-${OFFSET}-*;do&lt;br /&gt;
3    ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&lt;br /&gt;
4    NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&lt;br /&gt;
5    mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&lt;br /&gt;
6  done&amp;lt;/pre&amp;gt;&lt;br /&gt;
# The prior info explained, line-by-line:&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241390</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241390"/>
		<updated>2022-01-30T02:57:45Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Using some &amp;quot;shell&amp;quot; wizardry, rename the new files:&lt;br /&gt;
  1  OFFSET=3&lt;br /&gt;
  2  for PRIOR_NAME in *-${OFFSET}-*;do&lt;br /&gt;
  3    ADJUST=$(printf &amp;quot;%02d&amp;quot; $(($(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^.*-${OFFSET}-(.*)\.mkv$/\1/g&amp;quot;)+OFFSET)))&lt;br /&gt;
  4    NEW_NAME=$(echo -n ${PRIOR_NAME}|sed -E -e &amp;quot;s/^(.*)-${OFFSET}-.*$/\1${ADJUST}.mkv/g&amp;quot;)&lt;br /&gt;
  5    mv -i &amp;quot;$PRIOR_NAME&amp;quot; &amp;quot;$NEW_NAME&amp;quot;&lt;br /&gt;
  6  done&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241389</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241389"/>
		<updated>2022-01-30T02:52:49Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;br /&gt;
# Adjust MakeMKV for the second disc.&lt;br /&gt;
## Determine the &amp;quot;offset&amp;quot;.  As the first disc result in 3(three) files, the &amp;quot;offset&amp;quot; is 3(three).&lt;br /&gt;
## Incorporate the &amp;quot;offset&amp;quot; into the template pattern.  The prior pattern of: &amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Becomes: &amp;lt;code&amp;gt;{NAME} S1E-3-{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
## The result, using our example setup, will result in three additional files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E-3-03.mkv&amp;lt;/code&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241388</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241388"/>
		<updated>2022-01-30T02:45:39Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241387</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241387"/>
		<updated>2022-01-30T01:38:08Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[:Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;br/&amp;gt;&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241386</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241386"/>
		<updated>2022-01-30T01:05:50Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|plain||&amp;lt;br/&amp;gt;&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241385</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241385"/>
		<updated>2022-01-30T01:05:03Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|none||&amp;lt;code&amp;gt;My Foobar Honey/&amp;lt;br/&amp;gt;My Foobar Honey/Season 1&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241384</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241384"/>
		<updated>2022-01-30T01:04:18Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|none||&amp;lt;code&amp;gt;&lt;br /&gt;
My Foobar Honey/&lt;br /&gt;
My Foobar Honey/Season 1&lt;br /&gt;
My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&lt;br /&gt;
My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&lt;br /&gt;
My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/code&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241383</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241383"/>
		<updated>2022-01-30T01:02:51Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|white||&amp;lt;code&amp;gt;&lt;br /&gt;
My Foobar Honey/&lt;br /&gt;
My Foobar Honey/Season 1&lt;br /&gt;
My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&lt;br /&gt;
My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&lt;br /&gt;
My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241382</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241382"/>
		<updated>2022-01-30T01:02:15Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|white||&amp;lt;code&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
 My Foobar Honey/&amp;lt;br/&amp;gt;&lt;br /&gt;
 My Foobar Honey/Season 1&amp;lt;br/&amp;gt;&lt;br /&gt;
 My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;&lt;br /&gt;
 My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;&lt;br /&gt;
 My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/br&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241381</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241381"/>
		<updated>2022-01-30T01:01:46Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files: {{divbox|white|&amp;lt;code&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
 My Foobar Honey/&amp;lt;br/&amp;gt;&lt;br /&gt;
 My Foobar Honey/Season 1&amp;lt;br/&amp;gt;&lt;br /&gt;
 My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&amp;lt;br/&amp;gt;&lt;br /&gt;
 My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&amp;lt;br/&amp;gt;&lt;br /&gt;
 My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&amp;lt;/br&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241380</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241380"/>
		<updated>2022-01-30T01:00:33Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
## The template will use a &amp;quot;pattern&amp;quot; that offsets from where the last disc transcoded left off.&lt;br /&gt;
## Since the prior transcode stopped at three(3), the offset is &amp;quot;4&amp;quot;.&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
# Adjust MakeMKV for the first disc.&lt;br /&gt;
## Change the pattern in the output file template from: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## To: &amp;lt;br/&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;{NAME} S1E{M2}&amp;lt;/code&amp;gt;&lt;br /&gt;
## Set the &amp;quot;name&amp;quot; of the disc to: &amp;lt;code&amp;gt;My Foobar Honey (2005)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
## The result, using our example setup, will result in three files:&lt;br /&gt;
 My Foobar Honey/&lt;br /&gt;
 My Foobar Honey/Season 1&lt;br /&gt;
 My Foobar Honey/Season 1/My Foobar Honey (2005) S1E01.mkv&lt;br /&gt;
 My Foobar Honey/Season 1/My Foobar Honey (2005) S1E02.mkv&lt;br /&gt;
 My Foobar Honey/Season 1/My Foobar Honey (2005) S1E03.mkv&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241379</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241379"/>
		<updated>2022-01-30T00:51:55Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
** Which means that the first episode of the first season would be named: &amp;lt;code&amp;gt;My Foobar Honey (2005) S01E01&amp;lt;/code&amp;gt;&lt;br /&gt;
* Season 1(one) of the show is delivered with two discs. Both discs have three episodes each.&lt;br /&gt;
&lt;br /&gt;
=== High level outline of the steps taken ===&lt;br /&gt;
# Adjust MakeMKV to save the first disc conforming to Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
## Setup the &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the first disc.&lt;br /&gt;
## Set the name of the disc to the TV Show name, year of the season being transcoded.&lt;br /&gt;
# Transcode the first disc.&lt;br /&gt;
# Adjust the MakeMKV&#039;s &amp;lt;b&amp;gt;&amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;&amp;lt;/b&amp;gt; for the second disc&lt;br /&gt;
# Transcode the second disc.&lt;br /&gt;
# From CLI, move the second disc&#039;s episode to conform with Kodi&#039;s TV Show naming conventions.&lt;br /&gt;
# BONUS: Reset MakeMKV&#039;s default template pattern!&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|green||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
=== High level outline ===&lt;br /&gt;
&lt;br /&gt;
=== Specific Steps ===&lt;br /&gt;
==== Adjust the MakeMKV preferences ====&lt;br /&gt;
&lt;br /&gt;
{{divbox|red||&#039;&#039;&#039;Warning!&#039;&#039;&#039; Be SURE to copy the existing default template.}}&lt;br /&gt;
which for anyone who fails to heed the warning is: &amp;lt;code&amp;gt;{NAME1}{-:CMNT1}{-:DT}{title:+DFLT}{_t:N2}&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241378</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241378"/>
		<updated>2022-01-30T00:40:45Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab, there is an entry titled, &amp;lt;code&amp;gt;Output file name template&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
TODO - show default template&lt;br /&gt;
&lt;br /&gt;
By combining the use of the &amp;quot;name&amp;quot; of the disc with different Output Filename Template patterns, one can ease how TV show episodes are named.&lt;br /&gt;
&lt;br /&gt;
== Assumptions for this HOW-TO ==&lt;br /&gt;
&lt;br /&gt;
* You are going to transcode a TV show named, &amp;quot;My Foobar Honey&amp;quot;&lt;br /&gt;
* With Season 1(one), produced in the year 2005.&lt;br /&gt;
** The recommended approach for naming a TV show episode can be found at [[Naming video files/TV shows]].&lt;br /&gt;
&lt;br /&gt;
== Example using Linux ==&lt;br /&gt;
&lt;br /&gt;
{{divbox|red||&#039;&#039;&#039;Note:&#039;&#039;&#039; This same strategy can be applied to Windows platforms, &lt;br /&gt;
however this example does not attempt to spell out a Windows/Powershell (or other scripting approach such as Python). }}&lt;br /&gt;
&lt;br /&gt;
*&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241376</id>
		<title>HOW-TO:Use MakeMKV Template Pattern with TV Shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Use_MakeMKV_Template_Pattern_with_TV_Shows&amp;diff=241376"/>
		<updated>2022-01-29T23:54:02Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: Created page with &amp;quot;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multime...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Do you use [https://www.makemkv.com/ MakeMKV] for transcoding from different formats (i.e., DVDs, Blu-Rays, etc.) into [https://en.wikipedia.org/wiki/Matroska Matroska Multimedia Container] (aka &amp;quot;MKV&amp;quot;) formats?&lt;br /&gt;
&lt;br /&gt;
If so, you may have struggled with transcoding a TV show from a DVD into a file that Kodi can properly integrate into your [[Category:Video library|Video Library (category link)]].&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a step-by-step approach to manage MakeMKV-to-named-for-Kodi TV show episodes.&lt;br /&gt;
 &lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
When using MakeMKV to transcode a disc that contains multiple TV show episodes, manually renaming things is fairly trivial.  What is problematic is when that TV Show has multiple seasons and episodes, the renaming of the various &amp;quot;MKV&amp;quot; files can becoming daunting.&lt;br /&gt;
&lt;br /&gt;
This HOW-TO article provides a general strategy with a specific example done using MakeMKV-with-Linux solution.&lt;br /&gt;
&lt;br /&gt;
== General Strategy ==&lt;br /&gt;
&lt;br /&gt;
MakeMKV has a, &amp;quot;preferences&amp;quot; dialog, allowing end-users to change different settings.  On the &amp;quot;Advanced&amp;quot; tab&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Naming_video_files/TV_shows&amp;diff=219983</id>
		<title>Naming video files/TV shows</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Naming_video_files/TV_shows&amp;diff=219983"/>
		<updated>2020-09-10T19:04:04Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: spelling error&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{VideoLibraryCreate}}&lt;br /&gt;
{{mininav|[[Video library]]|[[Naming video files]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;Setting up TV Shows correctly is a little bit more involved than the Movies section. The first part of this page will describe the &#039;&#039;&#039;{{Kodi}} best practice&#039;&#039;&#039; to name TV Shows and Episode files and to create the folder structure to save them in. These methods are proven to be the simplest and most robust method which provides the most accurate scrape.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= TV Show Folder =&lt;br /&gt;
[[File:Video-TVShow Folder.png|500px|right]]&lt;br /&gt;
&#039;&#039;&#039;{{red|Each TV Show requires its own folder. The TV Show folder name is used to match the show at the scraper site.}}&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
{{Kodi}} &#039;&#039;&#039;does not&#039;&#039;&#039; support the flat folder structure for TV Shows where all episodes from different TV Shows are in the same folder.&lt;br /&gt;
&lt;br /&gt;
*The TV Show folders are located inside the &#039;&#039;&#039;&#039;&#039;[[Naming_video_files#Source_Folder|Source folder]]&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
*The folder name will be &#039;&#039;&#039;&#039;&#039;[[Advancedsettings.xml#.3Ccleanstrings.3E|cleaned]]&#039;&#039;&#039;&#039;&#039; of commonly used strings, such as &#039;&#039;DVDRip, 1080p, x264,&#039;&#039; etc. before being passed to the scraper.  If the year of release is included, this will be &#039;&#039;&#039;&#039;&#039;[[advancedsettings.xml#.3Ccleandatetime.3E|extracted]]&#039;&#039;&#039;&#039;&#039; and used by the scraper to assist in making a match.&lt;br /&gt;
*Spaces, periods, or underscores may be used to separate words in the folder and file names, but should not be mixed. Note also the issue with Split-episodes regarding file names with periods.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Naming TV Shows follows the same guidelines as for Movies.&lt;br /&gt;
*Name the TV Show folder the same way as shown on the TV Show page at the scraper site. &lt;br /&gt;
*It is always best practice to include the year along with the title. This makes scraping more accurate and differentiates between original and remake versions.&lt;br /&gt;
*This guideline also applies to &#039;&#039;&#039;Country of Origin&#039;&#039;&#039; TV Shows. For example Hells Kitchen (UK), Hells Kitchen (US), Hells Kitchen (AU), Hells Kitchen (IT) etc. &lt;br /&gt;
*&#039;&#039;&#039;The title and (year) displayed at the scraper site is how you should name your show.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;best practice&#039;&#039;&#039; method is detailed in the image to the right. (season folders are optional)&lt;br /&gt;
*&#039;&#039;Angel (1999)&#039;&#039;- TV Show folder containing Single File episodes &lt;br /&gt;
*&#039;&#039;Battlestar Galactica (1978)&#039;&#039;- TV Show folder containing DVD folders for episodes&lt;br /&gt;
*&#039;&#039;Battlestar Galactica (2004)&#039;&#039;- TV Show folder containing Bluray folders for episodes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Split folders ==&lt;br /&gt;
Split folders are TV Shows that have episodes split between two or more folders &#039;&#039;&#039;located in different Sources&#039;&#039;&#039;. This may occur when a long running show is progressively saved on one drive but, over time, the drive has been filled with other content, forcing you to save new episodes on another drive.&lt;br /&gt;
&lt;br /&gt;
To ensure these split TV Shows are correctly scraped as the same show, you &#039;&#039;&#039;must&#039;&#039;&#039; ensure that the TV Show folder names are identical. A slight variance could see a different show scraped for the second folder. If using NFO Files, then copy the NFO file from one location into the other split folders.&lt;br /&gt;
&lt;br /&gt;
= Season Folder =&lt;br /&gt;
Season folders are optional. They are useful to reduce clutter in the main TV Show folder.&lt;br /&gt;
&lt;br /&gt;
Even though {{kodi}} can accommodate the Season folder, it will ignore them. Instead it looks for the correctly numbered episode files.&lt;br /&gt;
&lt;br /&gt;
As a side note, once your TV Shows have been scanned into the Library, it is possible to rename the Season folder displayed by {{kodi}}. &#039;&#039;&#039;&#039;&#039;See: [[Season_rename|Season Rename]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When scraping be aware that season numbers may not be basic numbers. Many shows use the &#039;&#039;&#039;Year&#039;&#039;&#039; as the season number. This is quite common with older shows, daytime soaps and talk shows. &#039;&#039;&#039;Always check the site&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-overlay&amp;quot; widths=&amp;quot;500px&amp;quot; heights=&amp;quot;283px&amp;quot;&amp;gt;&lt;br /&gt;
File:TVDB04.JPG|Image 1- Standard Season Numbers&lt;br /&gt;
File:TVDB03.JPG|Image 2- &#039;&#039;&#039;Year&#039;&#039;&#039; as Season Number&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Episode Files =&lt;br /&gt;
&#039;&#039;&#039;Check the site of the information provider to confirm your files are in the same order and that the episodes exist at the scraper site. If not, images and metadata will not match your episode files or your scrape will fail if the episodes do not exist.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*The episode files (or folders if using DVD or Bluray folders) are located inside the TV Show folder or inside Season folders if using them.&lt;br /&gt;
*The file name (or folder name) will be &#039;&#039;&#039;&#039;&#039;[[Advancedsettings.xml#.3Ccleanstrings.3E|cleaned]]&#039;&#039;&#039;&#039;&#039; of commonly used strings, such as &#039;&#039;DVDRip, 1080p, x264,&#039;&#039; etc. before being passed to the scraper.&lt;br /&gt;
*Spaces, periods, or underscores may be used to separate words in the folder and file names, but should not be mixed. Note also the issue with Split-episodes regarding file names with periods.&lt;br /&gt;
&lt;br /&gt;
All episode files must be named and numbered correctly for the scanner to match the correct episode to the &#039;&#039;&amp;lt;episodeguide&amp;gt;&#039;&#039; URL of the TV Show downloaded from the scraper site. You cannot nominate season and episode numbering through NFO Files. &lt;br /&gt;
&lt;br /&gt;
The following is the simplest and most accurate way to name your episode files:&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot;  style=&amp;quot;width:300px; background-color:#a1f5e4; text-align:center;&amp;quot;| Angel (1999) S01E01.mkv&amp;lt;br&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Where:&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;Angel (1999)&#039;&#039;&#039;&#039;&#039; = TV Show name&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&#039;&#039;&#039;&#039;&#039;S01E01&#039;&#039;&#039;&#039;&#039; = Season 1, Episode 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For information on alternate or advanced episode naming conventions, see the &#039;&#039;Advanced Setup&#039;&#039; section further down this page.&lt;br /&gt;
&lt;br /&gt;
For information on &#039;&#039;&#039;&#039;&#039;alternate episode orders&#039;&#039;&#039;&#039;&#039;, see the &#039;&#039;Episode Groups&#039;&#039; section further down this page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Specials Episodes ==&lt;br /&gt;
&#039;&#039;&#039;All Special Episodes use Season 00&#039;&#039;&#039; &lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; ! style=&amp;quot;width:300px; background-color:#a1f5e4; text-align:left;&amp;quot;| Doctor Who (2005) S00E50&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
They are listed at TheMovieDB in the Specials section of the Season listing. &lt;br /&gt;
&lt;br /&gt;
Special Episdes are episodes that do not fit into the normal storyline of the TV Show. They may include items such as Christmas Specials, Season recap episodes, Made for TV Movies that extend the storyline, Unaired Pilots etc&lt;br /&gt;
&lt;br /&gt;
Special Episodes can be displayed in amongst the regular episodes through the use of &#039;&#039;&#039;[[NFO_files/TV_shows|NFO Files]]&#039;&#039;&#039;. this is specified using the &#039;&#039;&#039;&amp;lt;displayepisode&amp;gt;&amp;lt;/displayepisode&amp;gt;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;lt;displayseason&amp;gt;&amp;lt;/displayseason&amp;gt;&#039;&#039;&#039; tags.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Episode Groups =&lt;br /&gt;
Episode Groups or Orders are listings with alternate episode orders. Some TV Shows are broadcast in one order but the DVD/Bluray release may have a different screening order. A well known example is the TV Show &#039;&#039;Firefly&#039;&#039; where the Studio opted to broadcast high action episodes for ratings first, while the Producer wanted a different order to correctly unfold the storyline.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== TheMovieDB-TV Shows ==&lt;br /&gt;
TheMovieDB uses Episode Groups for additional episode orders.&lt;br /&gt;
*Numerous Groups can be added which should cater to the different releases between countries&lt;br /&gt;
*Creating Groups and adding episodes is quite simplistic, using drag and drop which should encourage contributors to complete the entries&lt;br /&gt;
*Where available, the listings are easily accessible for viewing as shown in the images below&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;traditional&amp;quot; widths=&amp;quot;500px&amp;quot; heights=&amp;quot;283px&amp;quot;&amp;gt;&lt;br /&gt;
File:EpisodeGroups01.jpg|Image 1- Accessing Episode Groups&lt;br /&gt;
File:EpisodeGroups02.jpg|Image 2- Available Episode Groups&lt;br /&gt;
File:EpisodeGroups03.jpg|Image 3- Select a Group, then copy the address for use in a Parsing NFO file.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To use one of the orders for scraping, follow the images above and place the address in a &#039;&#039;&#039;&#039;&#039;[[NFO_files#Parsing_nfo|Parsing NFO file]]&#039;&#039;&#039;&#039;&#039; then scrape. The Parsing NFO File will point the scraper to the listing. &amp;lt;ref&amp;gt;https://forum.kodi.tv/showthread.php?tid=338467&amp;amp;pid=2801494#pid2801494&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The TVDB ==&lt;br /&gt;
The TVDB allows for three listing orders as detailed below.&lt;br /&gt;
*These are the only three orders available.&lt;br /&gt;
*The current web site is flawed and does not allow the display of the different orders.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;Aired Order&lt;br /&gt;
*This is the default order set in the scraper settings.&lt;br /&gt;
*TVDB lists all TV shows in the original &#039;&#039;&#039;Aired Order&#039;&#039;&#039;. The first time a show is ever broadcast, that is the listing shown. The site is not concerned with how it was broadcast the 2nd, 3rd or 15th time, or how it was broadcast in other countries, or during syndication. It only lists the order of the FIRST TIME ever broadcast, whether that be on Free To Air or Subscription Television.&lt;br /&gt;
*Episodes are grouped and listed into Seasons and each episode is numbered sequentially from 1, which resets for each season.&lt;br /&gt;
&lt;br /&gt;
;DVD Order&lt;br /&gt;
*In many cases, DVD&#039;s are released with a different episode listing, normally being the original order envisioned by the Director. To accommodate this, the site also has a &#039;&#039;&#039;DVD Order&#039;&#039;&#039; listing.&lt;br /&gt;
*Episodes are grouped and listed into Seasons and each episode is numbered sequentially from 1, which resets for each season. &lt;br /&gt;
*There are many TV Shows on the TVDB site that do not have the DVD Order data entered. The scraper will default back to Aired Order if there is no DVD Order information listed.&lt;br /&gt;
*Note: As the data at TVDB is created by the open community, it is not uncommon for errors to occur with DVD Order details. As it is seen as secondary information, the errors can go unnoticed. One major error that affects the scrapers is incomplete DVD Order details. For example, some episodes have no DVD Order data, while other episodes in the same season do have the data.&lt;br /&gt;
*Early May 2018, TVDB upgraded their website to v2.0. Unfortunately a glitch has prevented the display of DVD Order and Absolute Order information. It is unknown when it will be rectified.&lt;br /&gt;
&lt;br /&gt;
;Absolute Order&lt;br /&gt;
*This order ignores Seasons and gives each episode an incremental number starting at 1. &lt;br /&gt;
*This order is used for Anime type shows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Order you use can be set in the settings page for the TVDB Scraper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;&#039;{{big|{{red|The remainder of this page deals with Special Use cases and can be safely ignored. Most libraries will not require implementing the following additional name extensions.}}}}&#039;&#039;&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;{{linear-gradient|left|#a1f5e4, #f5f5a1}}&amp;quot;&amp;gt;{{next|[[Adding_video_sources|&#039;&#039;&#039;Add Source &amp;amp; Scrape&#039;&#039;&#039;]]}} &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Advanced Setup = &lt;br /&gt;
The previous section details the simplest method to set up your TV Show library. It is considered the &#039;&#039;&#039;&#039;&#039;best practice&#039;&#039;&#039;&#039;&#039; method. &lt;br /&gt;
&lt;br /&gt;
The sections from here onwards are alternate or advanced methods. With added complexity comes higher maintenance and more potential problems and scraping errors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== TV Show folder ==&lt;br /&gt;
&#039;&#039;&#039;{{red|These other methods are available but NOT recommended. The sub-folders are easily mistaken and scraped as false TV shows. While it is possible to find and fix the ghost entries, the extra time and work involved will override any possible benefits. If you need to re-build your library at a later stage, the problems will need to be solved again.}}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
In more complex situations where your top-level directory is further sub-divided before the show folders, you can add the top-level as source but not set the content, and then set the content to TV shows on each sub-folder.&lt;br /&gt;
&lt;br /&gt;
;Example&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:500px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TV Shows                  &amp;lt;&amp;lt;Source folder, Content: None&amp;gt;&amp;gt;&lt;br /&gt;
   |----A-M               &amp;lt;&amp;lt;Content: TV shows&amp;gt;&amp;gt;&lt;br /&gt;
   |      |----TV Show 1&lt;br /&gt;
   |              |--Files&lt;br /&gt;
   |----N-Z               &amp;lt;&amp;lt;Content: TV shows&amp;gt;&amp;gt;&lt;br /&gt;
   |      |----TV Show 2&lt;br /&gt;
   |              |--Files&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is also possible to have a sub-folder group multiple shows together in an otherwise normal directory structure.  Just change the content on the sub-folder and de-select the &amp;quot;Selected folder contains a single TV show&amp;quot; setting.&lt;br /&gt;
&lt;br /&gt;
;Example&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:500px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TV Shows                  &amp;lt;&amp;lt;Source folder, Content: TV shows&amp;gt;&amp;gt;&lt;br /&gt;
   |----TV Show 1&lt;br /&gt;
   |       |----Season #&lt;br /&gt;
   |            |--Files&lt;br /&gt;
   |----Star Trek Series  &amp;lt;&amp;lt;Content:TV shows&amp;gt;&amp;gt;&lt;br /&gt;
   |       |----Star Trek&lt;br /&gt;
   |       |       |--Files&lt;br /&gt;
   |       |----Star Trek The Next Generation&lt;br /&gt;
   |               |--Files&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
In these cases, it&#039;s best to refrain from scanning the files into the library until the content is set correctly for all folders, to avoid incorrect results and the need to rescan.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Seasons ==&lt;br /&gt;
Nil availble options. Season folders are ignored by {{kodi}} which means you can name them as you please.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Single Episodes ==&lt;br /&gt;
Episode files are assumed to  contain a single episode. If you have files that contain two or more episodes, then read the &#039;&#039;&#039;&#039;&#039;Multi-Episodes&#039;&#039;&#039;&#039;&#039; section below.&lt;br /&gt;
&lt;br /&gt;
The structure of the episode name is as follows:&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; ! style=&amp;quot;width:300px; background-color:#a1f5e4; text-align:left;&amp;quot;| name &amp;lt;&amp;lt;pattern&amp;gt;&amp;gt;.ext&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:where:&lt;br /&gt;
:*&#039;&#039;&#039;name&#039;&#039;&#039; is the title of the show and is optional. It could just as easily be after the pattern, or excluded entirely. &lt;br /&gt;
:*&#039;&#039;&#039;&amp;lt;&amp;lt;pattern&amp;gt;&amp;gt;&#039;&#039;&#039; is one of the expressions in the following tables. &#039;&#039;S&#039;&#039; = Season number; &#039;&#039;E&#039;&#039; = Episode number&lt;br /&gt;
:*&#039;&#039;&#039;.ext&#039;&#039;&#039; is a recognized video file extension, (mkv, avi, ts, mp4, etc) or ommitted entirely if using DVD or Bluray folders.&lt;br /&gt;
&lt;br /&gt;
Kodi uses a series of regular expressions to determine the season and episode numbers from the file name. These are checked in a pre-determined order with the first match being the one used and everything else in the file name is ignored. NFO Files are &#039;&#039;&#039;never&#039;&#039;&#039; checked for season and episode numbers.&lt;br /&gt;
&lt;br /&gt;
There are 8 default patterns, plus a separate multi-episode pattern. Using any other numbering convention outside of the ones provided in the list below will require you to edit your advancedsettings.xml and insert your custom RegEx.&lt;br /&gt;
&lt;br /&gt;
Spaces, periods, or underscores may be used to separate words in the folder and file names, but shouldn&#039;t be mixed in the same name. The regex is not case-sensitive and either uppercase or lowercase may be used. The examples on this page use uppercase.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following table lists:&lt;br /&gt;
*The pattern that {{kodi}} will search for. &lt;br /&gt;
*The order of the search. ie. Patterns numbered &#039;&#039;&#039;1&#039;&#039;&#039; will be matched first and those numbered &#039;&#039;&#039;7&#039;&#039;&#039; will be matched last.&lt;br /&gt;
&lt;br /&gt;
;With Season&lt;br /&gt;
:The most common usage and used for nearly all TV Shows.&lt;br /&gt;
;No Season&lt;br /&gt;
:In cases where you only have one season (or are using absolute order in the TVDB scraper), you may want to forego the inclusion of the season number.&lt;br /&gt;
;By date&lt;br /&gt;
:Common for long-running daily shows, allows the use of aired date of the episode.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; style=&amp;quot;background-color:#a1f5e4;&amp;quot; | With Season&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; style=&amp;quot;background-color:#a1f5e4;&amp;quot; | No Season&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; style=&amp;quot;background-color:#a1f5e4;&amp;quot; | By Date&lt;br /&gt;
|+&lt;br /&gt;
! style=&amp;quot;background-color:#f5f5a1;&amp;quot; | Order&lt;br /&gt;
! style=&amp;quot;background-color:#f5f5a1; width:200px&amp;quot; | Episode Naming&lt;br /&gt;
! style=&amp;quot;background-color:#f5f5a1;&amp;quot; | Order&lt;br /&gt;
! style=&amp;quot;background-color:#f5f5a1; width:200px&amp;quot; | Episode Naming&lt;br /&gt;
! style=&amp;quot;background-color:#f5f5a1;&amp;quot; | Order&lt;br /&gt;
! style=&amp;quot;background-color:#f5f5a1; width:200px&amp;quot; | Episode Naming&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;S01E02&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|2&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;ep02&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|3&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;yyyy.mm.dd&#039;&#039;&#039;.ext&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;S1E2&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|2&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;ep_02&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|3&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;yyyy-mm-dd&#039;&#039;&#039;.ext&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;S01.E02&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|7&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;part.II&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|4&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;dd.mm.yyyy&#039;&#039;&#039;.ext&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;S01_E02&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|7&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;pt.II&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;S01xE02&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|7&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;pt_II&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|5&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;1x02&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|6&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&#039;&#039;Name&#039;&#039; &#039;&#039;&#039;102&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Multi-Episodes ==&lt;br /&gt;
In cases where the file contains more than one episode, it is possible to specify all the episodes included in that file. Everything after the first found pattern match will be checked for further matches to the same pattern.&lt;br /&gt;
&lt;br /&gt;
*When using a single video file for multiple episodes it is possible to tell Kodi when each episode starts using &#039;&#039;&#039;&#039;&#039;[[Bookmarks_and_chapters|Episode Bookmarks]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
*Two versions are shown- Long version and Short version. Only the episodes in the file name will be added, e.g. &#039;&#039;name&#039;&#039;.&#039;&#039;&#039;s01e01-03&#039;&#039;&#039;.ext will not include episode 2.&lt;br /&gt;
*The patterns are the same for Single Episode numbering, but extended to include multiple episodes.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;&#039;&#039;See also: [[Advancedsettings.xml#.3Ctvmultipartmatching.3E|multi-episode pattern]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; style=&amp;quot;background-color:#a1f5e4;&amp;quot; | Complex Pattern&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; style=&amp;quot;background-color:#a1f5e4;&amp;quot; | Short Pattern&lt;br /&gt;
|+&lt;br /&gt;
! style=&amp;quot;background-color:#f5f5a1;&amp;quot; | Order&lt;br /&gt;
! style=&amp;quot;background-color:#f5f5a1; width:350px&amp;quot; | Example Name&lt;br /&gt;
! style=&amp;quot;background-color:#f5f5a1;&amp;quot; | Order&lt;br /&gt;
! style=&amp;quot;background-color:#f5f5a1; width:200px&amp;quot; | Example Name&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;width:300px; text-align:left;&amp;quot;|&#039;&#039;name&#039;&#039; &#039;&#039;&#039;s01e01&#039;&#039;&#039;-&#039;&#039;&#039;s01e02&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;width:150px; text-align:left;&amp;quot;|&#039;&#039;name&#039;&#039; &#039;&#039;&#039;s01e01e02&#039;&#039;&#039;.ext&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;width:300px; text-align:left;&amp;quot;|&#039;&#039;name&#039;&#039; &#039;&#039;&#039;s01e01&#039;&#039;&#039;-&#039;&#039;episode1.title&#039;&#039;-&#039;&#039;&#039;s01e02&#039;&#039;&#039;-&#039;&#039;episode2.title&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;width:150px; text-align:left;&amp;quot;|&#039;&#039;name&#039;&#039; &#039;&#039;&#039;s01e01-02-03&#039;&#039;&#039;.ext&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|1&lt;br /&gt;
|style=&amp;quot;width:300px; text-align:left;&amp;quot;|&#039;&#039;name&#039;&#039; &#039;&#039;&#039;s01e01&#039;&#039;&#039;-&#039;&#039;&#039;s01e02&#039;&#039;&#039;-&#039;&#039;&#039;s01e03&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|5&lt;br /&gt;
|style=&amp;quot;width:150px; text-align:left;&amp;quot;|&#039;&#039;name&#039;&#039; &#039;&#039;&#039;1x01x02&#039;&#039;&#039;.ext&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|5&lt;br /&gt;
|style=&amp;quot;width:300px; text-align:left;&amp;quot;|&#039;&#039;name&#039;&#039; &#039;&#039;&#039;1x01&#039;&#039;&#039;-&#039;&#039;&#039;1x02&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|2&lt;br /&gt;
|style=&amp;quot;width:150px; text-align:left;&amp;quot;|&#039;&#039;name&#039;&#039; &#039;&#039;&#039;ep01-02&#039;&#039;&#039;.ext&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|2&lt;br /&gt;
|style=&amp;quot;width:300px; text-align:left;&amp;quot;|&#039;&#039;name&#039;&#039; &#039;&#039;&#039;ep01&#039;&#039;&#039;-&#039;&#039;&#039;ep02&#039;&#039;&#039;.ext&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:center;&amp;quot;|&lt;br /&gt;
|style=&amp;quot;width:150px; text-align:left;&amp;quot;|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Split Episodes ==&lt;br /&gt;
{{warning|{{resize|1.4em|The November 2019 upgrade of the TVDB site has removed the &#039;&#039;E01.1, E01.2&#039;&#039; type numbering of episodes.&amp;lt;br&amp;gt; This naming technique no longer applies for any scraper and has been removed from the wiki.}}}}&lt;br /&gt;
If your files still contain this numbering scheme, and you intend to re-scrape your library, check the episode listing at [https://www.thetvdb.com/ TheTVDB] to ensure your episodes are numbered correctly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Stub and Stream Files =&lt;br /&gt;
{{main|Media_stubs}}&lt;br /&gt;
{{#lst:Media_stubs|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{main|Internet_video_and_audio_streams}}&lt;br /&gt;
{{#lst:Internet_video_and_audio_streams|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Media Tags / Flags =&lt;br /&gt;
{{main|Media flags}}&lt;br /&gt;
&lt;br /&gt;
[[File:480.png|50px]] [[File:1080.png|50px]] [[File:720.png|50px]] [[File:1080 n.png|50px]] [[File:480-1.png|50px]]&lt;br /&gt;
[[File:Divx.png|80px]] [[File:Xvid.png|80px]] [[File:H264.png|80px]] [[File:Bluray.png|80px]] [[File:Dvd.png|80px]] [[File:Avc1.png|80px]]&lt;br /&gt;
[[File:1.33.png|50px]] [[File:1.66.png|50px]] [[File:2.20.png|50px]] [[File:2.35.png|50px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Media flags are icons in Kodi that displays the meta-information from the media file of a movie, TV show or music title. They are skin specific, and what works in one skin, may not work in another skin. It is always best to check with the skin sub-forum which flags and tags are used.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;It is important to note that the skin will display these flags even when these extensions are not used.&#039;&#039;&#039; The only difference being that without the extensions, the movie must be played first in order for {{kodi}} to read the audio and video codec data. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The actual audio and video codec data will override any extension used.&#039;&#039;&#039; This means that if you set the extension of, say, &#039;&#039;&#039;.ATMOS&#039;&#039;&#039; but the video file only has a stereo track, then the &#039;&#039;&#039;.ATMOS&#039;&#039;&#039; flag will be removed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example- note that movie folders are used, and the folder is simply named while the filename has been modified with extensions.&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; ! style=&amp;quot;width:400px; background-color:#a1f5e4; text-align:left;&amp;quot;| ...\Paul (2011)\Paul (2011).4K.HDR.Atmos.mkv&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3D Episodes ==&lt;br /&gt;
{{Main|3D}}&lt;br /&gt;
Some 3D episodes might need an additional file name extension to be identified by Kodi as 3D. See &#039;&#039;&#039;&#039;&#039;[[3D]]&#039;&#039;&#039;&#039;&#039; for details on that additional extension, and when it is needed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Custom Filenames =&lt;br /&gt;
It&#039;s possible to use custom file names that don&#039;t match any of the default patterns by editing your [[advancedsettings.xml]] file to include a [[advancedsettings.xml#.3Ctvshowmatching.3E|tvshowmatching]] tag containing regular expressions.&lt;br /&gt;
&lt;br /&gt;
A tvshowmatching regexp needs up to three capturing groups:&lt;br /&gt;
:1 capturing group = episode number (season will default to season 1), no multi-episode matches will be attempted&lt;br /&gt;
:2 capturing groups = season number + episode number (in that order), no multi-episode matches will be attempted&lt;br /&gt;
:3 capturing groups = season number + episode number + multi-episode matching part (typically just the remainder of the file name)&lt;br /&gt;
&lt;br /&gt;
(A capturing group is essentially a part of the regexp contained inside brackets.)&lt;br /&gt;
&lt;br /&gt;
To have no season but multi-episode matching, use three groups but leave the first empty.&lt;br /&gt;
&lt;br /&gt;
Date-based regexps are also possible, and are marked by a bydate=&amp;quot;true&amp;quot; attribute in the regexp.  These also use three capturing groups, either as year-month-day or day-month-year, the lengths must be exactly 4-2-2 or 2-2-4.&lt;br /&gt;
&lt;br /&gt;
Your custom tvshowmatching regexps can be either checked for before the default set using &amp;lt;code&amp;gt;action=&amp;quot;prepend&amp;quot;&amp;lt;/code&amp;gt;, or after using &amp;lt;code&amp;gt;action=&amp;quot;append&amp;quot;&amp;lt;/code&amp;gt;.  Not including an action will result in only your regexps being tested.  Care should be taken to ensure that the right regexp matches your file names, particularly in regard to the three digit &amp;quot;102&amp;quot; pattern seen [[#Single_Episodes|above]].&lt;br /&gt;
The regexps should be grouped together inside a single tvshowmatching tag, although you can use two if you wish to prepend &#039;&#039;and&#039;&#039; append different regexps.&lt;br /&gt;
&lt;br /&gt;
You can also change the multi-episode matching regexp by including a [[Advancedsettings.xml#.3Ctvmultipartmatching.3E|tvmultipartmatching]] tag in your advancedsettings.xml (separate from the tvshowmatching tag). &lt;br /&gt;
There can be only one tvmultipartmatching expression, whatever you use will overwrite the default, so take care to only expand on the default pattern unless you are certain.&lt;br /&gt;
The tvmultipartmatching requires one capturing group for the episode number.&lt;br /&gt;
&lt;br /&gt;
For simplicity, the split-episode pattern has been excluded from the examples below. To allow for split-episodes, replace the &amp;lt;code&amp;gt;[0-9]+&amp;lt;/code&amp;gt; in the episode capturing group with &amp;lt;code&amp;gt;[0-9]+(?:(?:[a-i]|\.[1-9])(?![0-9]))?&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
A fairly straightforward example to begin.&lt;br /&gt;
;Season ## - Episode ##&lt;br /&gt;
:&amp;quot;Season [season#] - Episode [episode#]&amp;quot; anywhere in the file name&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:900px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=xml enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;tvshowmatching action=&amp;quot;prepend&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;regexp&amp;gt;Season ([0-9]+) - Episode ([0-9]+)([^\\/]*)$&amp;lt;/regexp&amp;gt;&lt;br /&gt;
 &amp;lt;/tvshowmatching&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
:&#039;&#039;&#039;Example&#039;&#039;&#039; : TV Shows\Scrubs\Season 1\Scrubs - &#039;&#039;&#039;Season 1 - Episode 01&#039;&#039;&#039; - Pilot.avi&lt;br /&gt;
:The first two capturing groups should be obvious, the third group &amp;lt;code&amp;gt;([^\\/]*)&amp;lt;/code&amp;gt; captures everything up to the end of the file name &amp;lt;code&amp;gt;$&amp;lt;/code&amp;gt;, this allows for multi-part file names such as &#039;&#039;name&#039;&#039;.&#039;&#039;&#039;Season 1 - Episode 01&#039;&#039;&#039; - &#039;&#039;&#039;Season 1 - Episode 02&#039;&#039;&#039;.ext as well as the simpler &#039;&#039;name&#039;&#039;.&#039;&#039;&#039;Season 1 - Episode 01-02&#039;&#039;&#039;.ext&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The entire file path is passed to the regexps, so care should be taken to ensure the matches can&#039;t occur earlier in the path, but this does mean for example, you can capture the season number from a sub-folder name.&lt;br /&gt;
;\Season #\##&lt;br /&gt;
:Season [season#] at the end of the directory name, file name starts with [episode#]&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:900px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=xml enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;tvshowmatching action=&amp;quot;prepend&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;regexp&amp;gt;Season[\._ ]([0-9]+)[\\/]([0-9]+)([^\\/]*)$&amp;lt;/regexp&amp;gt;&lt;br /&gt;
 &amp;lt;/tvshowmatching&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
:&#039;&#039;&#039;Example&#039;&#039;&#039; : \Battlestar Galactica (2003)\&#039;&#039;&#039;Season 3\01&#039;&#039;&#039; - Occupation.avi (Season 3, Episode 1)&lt;br /&gt;
:Again we use three groups here to allow for multi-episode, but in this case (obviously) only the shorter multi-episode pattern can occur, e.g. &#039;&#039;&#039;Season 1\01x02&#039;&#039;&#039; - Episode title.ext.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
For numbering without a season, you should ensure that only the episode number gets matched against and not another number in the title or episode title, or a number as part of a different pattern.&lt;br /&gt;
; - ## - &lt;br /&gt;
:&amp;quot; - [episode#] - &amp;quot; anywhere in the file name&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:900px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=xml enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;tvshowmatching action=&amp;quot;prepend&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;regexp&amp;gt; - ()([0-9]+)((?:-[0-9]+)*) - [^\\/]*$&amp;lt;/regexp&amp;gt;&lt;br /&gt;
 &amp;lt;/tvshowmatching&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
:&#039;&#039;&#039;Example&#039;&#039;&#039; : \One Piece\One Piece&#039;&#039;&#039; - 099 - &#039;&#039;&#039;Spirit of the Fakes! Heart of the Rebel Army, Kamyu!.avi (&amp;quot;Season 1&amp;quot;, Episode 99) (Using Absolute order)&lt;br /&gt;
:Here, the first capturing group is left empty, and there is a distinct pattern before and after the episode number to ensure only it gets matched. Also instead of capturing the remainder of the file name for multi-part matching, we only capturing a single repeating pattern so only a &#039;&#039;&#039;- 01-02-03 -&#039;&#039;&#039; format will work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
It&#039;s also possible to specify a different default season for without-season regexps.&lt;br /&gt;
;\Specials\##&lt;br /&gt;
:Directory name is Specials, file name starts with [episode#]&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:900px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=xml enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;tvshowmatching action=&amp;quot;prepend&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;regexp defaultseason=&amp;quot;0&amp;quot;&amp;gt;Specials[\\/]()([0-9]+)([^\\/]*)$&amp;lt;/regexp&amp;gt;&lt;br /&gt;
 &amp;lt;/tvshowmatching&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
:&#039;&#039;&#039;Example&#039;&#039;&#039; : \Firefly\&#039;&#039;&#039;Specials\04&#039;&#039;&#039; - Browncoats Unite.mkv (Season 0, Episode 4)&lt;br /&gt;
:A combination of the previous two examples, allowing special episodes to reside in a &amp;quot;Specials&amp;quot; folder rather than a &amp;quot;Season 0&amp;quot; folder. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The default date-based regexps only allow for periods or hyphens as delimiters...&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;####_##_##&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
:[year]_[month]_[day] anywhere in the file name&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:900px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=xml enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;tvshowmatching action=&amp;quot;prepend&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;regexp bydate=&amp;quot;true&amp;quot;&amp;gt;([0-9]{4})_([0-9]{2})_([0-9]{2})[^\\/]*$&amp;lt;/regexp&amp;gt;&lt;br /&gt;
 &amp;lt;/tvshowmatching&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
:&#039;&#039;&#039;Example:&#039;&#039;&#039; : \The Colbert Report\&#039;&#039;&#039;2005_10_17&#039;&#039;&#039;.avi&lt;br /&gt;
:The exact number of digits is specified for each group to ensure compliance. A separate [month]_[day]_[year] regexp would be needed if both formats are in use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
The default regexps don&#039;t allow for DVD folder structures, this can usually be remedied by replacing the final &amp;lt;code&amp;gt;$&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;(?:(?:[\\/]video_ts)?[\\/]video_ts\.ifo)$&amp;lt;/code&amp;gt;&lt;br /&gt;
;S##E##\VIDEO_TS\VIDEO_TS.IFO&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:900px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=xml enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;tvshowmatching action=&amp;quot;append&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;regexp&amp;gt;[Ss]([0-9]+)[ ._-]*[Ee]([0-9]+)([^\\/]*)(?:(?:[\\/]VIDEO_TS)?[\\/]VIDEO_TS\.IFO)$&amp;lt;/regexp&amp;gt;&lt;br /&gt;
 &amp;lt;/tvshowmatching&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
:&#039;&#039;&#039;Example:&#039;&#039;&#039; \Battlestar Galactica (2003)\The Mini-Series &#039;&#039;&#039;S00E01E02&#039;&#039;&#039;\VIDEO_TS\VIDEO_TS.IFO&lt;br /&gt;
:The VIDEO_TS folder is optional, e.g. &#039;&#039;&#039;S01E01&#039;&#039;&#039;\VIDEO_TS.IFO will also work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Similarly for Bluray folder structures, you can replace the final &amp;lt;code&amp;gt;$&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;(?:(?:[\\/]bdmv)?[\\/]index\.bdmv)$&amp;lt;/code&amp;gt;&lt;br /&gt;
;&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;x##\BDMV\index.bdmv&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:900px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=xml enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;tvshowmatching action=&amp;quot;append&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;regexp&amp;gt;[\\/\._ \[\(-]([0-9]+)x([0-9]+)([^\\/]*)(?:(?:[\\/]bdmv)?[\\/]index\.bdmv)$&amp;lt;/regexp&amp;gt;&lt;br /&gt;
 &amp;lt;/tvshowmatching&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
:With Bluray folders, you&#039;ll also run into trouble with the various mpls and m2ts files incorrectly matching other patterns, so you should also exclude all the other folders and files from being scanned:&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:900px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=xml enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;video&amp;gt;&lt;br /&gt;
    &amp;lt;excludetvshowsfromscan action=&amp;quot;append&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;regexp&amp;gt;[\\/](auxdata|backup|clipinf|playlist|stream|certificate)[\\/]&amp;lt;/regexp&amp;gt;&lt;br /&gt;
      &amp;lt;regexp&amp;gt;movieobject\.bdmv&amp;lt;/regexp&amp;gt;&lt;br /&gt;
    &amp;lt;/excludetvshowsfromscan&amp;gt;&lt;br /&gt;
  &amp;lt;/video&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Finally, a tvmultipartmatching example.&lt;br /&gt;
;S##E##+##&lt;br /&gt;
:Multiple episode numbers, separated by a + sign&lt;br /&gt;
:{| class=&amp;quot;prettytable&amp;quot; style=&amp;quot;width:900px; background-color:#a1f5e4; text-align:left;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=xml enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;tvmultipartmatching&amp;gt;^[-_EeXx+]+([0-9]+)&amp;lt;/tvmultipartmatching&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
:&#039;&#039;&#039;Example:&#039;&#039;&#039; : \Lost\Lost.&#039;&#039;&#039;S01E23+24&#039;&#039;&#039;.Exodus.mkv&lt;br /&gt;
:In this case we can simply add the + sign to the default symbols, thus preserving the defaults as well.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= advancedsettings.xml =&lt;br /&gt;
{{main|advancedsettings.xml}}&lt;br /&gt;
The following settings allow user customisation for TV Show and Episode matching.&lt;br /&gt;
&lt;br /&gt;
* [[advancedsettings.xml#tvshowmatching|&amp;lt;tvshowmatching&amp;gt;]]&lt;br /&gt;
* [[advancedsettings.xml#tvmultipartmatching|&amp;lt;tvmultipartmatching&amp;gt;]]&lt;br /&gt;
* [[advancedsettings.xml#excludetvshowsfromscan|&amp;lt;excludetvshowsfromscan&amp;gt;]]&lt;br /&gt;
* [[advancedsettings.xml#cleanstrings|&amp;lt;cleanstrings&amp;gt;]]&lt;br /&gt;
* [[advancedsettings.xml#videoextensions|&amp;lt;videoextensions&amp;gt;]]&lt;br /&gt;
* [[advancedsettings.xml#discstubextensions|&amp;lt;discstubextensions&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{top}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;{{linear-gradient|left|#a1f5e4, #f5f5a1}}&amp;quot;&amp;gt;{{next|[[Adding_video_sources|&#039;&#039;&#039;Add Source &amp;amp; Scrape&#039;&#039;&#039;]]}} &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{updated|18}}&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[Category:Index]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Guides]]&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:Karellen]]&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
[[Category:General topics]]&lt;br /&gt;
[[Category:First time user]]&lt;br /&gt;
[[Category:Quick Start Guide]]&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=User_talk:Muddysteel&amp;diff=172097</id>
		<title>User talk:Muddysteel</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=User_talk:Muddysteel&amp;diff=172097"/>
		<updated>2019-06-18T13:45:55Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: /* Segmenting page info into current/best practices vs. out-of-date */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to &#039;&#039;Official Kodi Wiki&#039;&#039;!&#039;&#039;&#039;&lt;br /&gt;
We hope you will contribute much and well.&lt;br /&gt;
You will probably want to read the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents help pages].&lt;br /&gt;
Again, welcome and have fun! [[User:Davu|Davu]] ([[User talk:Davu|talk]]) 05:36, 7 February 2019 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Who Be Muddysteel? ==&lt;br /&gt;
&lt;br /&gt;
Long time computer geek.  Started a ways back with BASIC, migrated to COBOL, then Pascal, then C then.. lost count.  (Never got much past C++ primers; too much a hack-over of C vs. other from-the-ground-up languages like Java. REALLY interested in [https://en.wikipedia.org/wiki/Rust_(programming_language Rust] and [https://en.wikipedia.org/wiki/Go_(programming_language) GO], especially since Java did not fuse to the underlying O/S all that well.)&lt;br /&gt;
&lt;br /&gt;
Professionally, software engineer with a pedigree that ranges from discrete real-time control system stuff, to enterprise application apps and the surrounding infrastructure / support. Currently employed with an eye on developing enterprise apps that are from the ground up, built to be secure. Lots of time under the hood with [https://en.wikipedia.org/wiki/Java_Cryptography_Extension JCE] and [https://en.wikipedia.org/wiki/Hardware_security_module HSMs] of different flavors.&lt;br /&gt;
&lt;br /&gt;
Nosing into Kodi and its Wiki &#039;cause there&#039;s a ton of spare-time work to be done cleaning stuff up - as my experience with Kodi evolves, will turn my Wiki-izing towards those topics I have the opportunity to touch upon.  Might even try a (C++) patch or two.. :)&lt;br /&gt;
&lt;br /&gt;
[[User:Muddysteel|Muddysteel]] ([[User talk:Muddysteel|talk]]) 16:53, 16 June 2019 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Segmenting page info into current/best practices vs. out-of-date ==&lt;br /&gt;
&lt;br /&gt;
On a per-page basis, it would be helpful to delineate between &amp;quot;current/best practices&amp;quot; and &amp;quot;other&amp;quot; in some manner.&lt;br /&gt;
&lt;br /&gt;
I&#039;ve been reviewing the Wiki guidelines, FAQs, etc., and do not really see something concrete along these lines.&lt;br /&gt;
&lt;br /&gt;
I&#039;m going to take a stab at this with the [[LIRC]] page: My contribs will be limited to the Linux side of things, as my Windoze systems only exist to support stuff that is windows-only (e.g., URC Remote control editor).&lt;br /&gt;
&lt;br /&gt;
I&#039;ll ask for some review/feedback as the effort yields something concrete.&lt;br /&gt;
&lt;br /&gt;
[[User:Muddysteel|Muddysteel]] ([[User talk:Muddysteel|talk]]) 13:45, 18 June 2019 (UTC)&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Naming_video_files/Movies&amp;diff=172093</id>
		<title>Naming video files/Movies</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Naming_video_files/Movies&amp;diff=172093"/>
		<updated>2019-06-17T13:16:20Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: Indicate use of the open/close parenthesis &amp;#039;()&amp;#039; vs. open /close bracket &amp;#039;[]&amp;#039;  characters. Brackets are Wiki markup.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{VideoLibraryCreate}}&lt;br /&gt;
{{mininav|[[Video library]]|[[Naming video files]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&amp;lt;section begin=&amp;quot;intro&amp;quot; /&amp;gt;This page will describe the &#039;&#039;&#039;{{Kodi}} best practice&#039;&#039;&#039; to name Movie files and create the folder structure to save them in. Your movie folder and files will be placed within your Source folder.&amp;lt;section end=&amp;quot;intro&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default scraper used by {{kodi}} for &#039;&#039;&#039;Movies&#039;&#039;&#039; is the TheMovieDB (TMDB). Other scrapers are available and can be found by searching the {{kodi}} site &#039;&#039;&#039;&#039;&#039;[https://kodi.tv/addons/browse?keyword=&amp;amp;category=1185&amp;amp;author=&amp;amp;sort=title+ASC here]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:&#039;&#039;&#039;&#039;&#039;See: [https://www.themoviedb.org/ TheMovieDB]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:&#039;&#039;&#039;&#039;&#039;See: [[Add-on:The_Movie_Database|TheMovieDB Add-on]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
:&#039;&#039;&#039;&#039;&#039;See: [[Add-on:Universal_Movie_Scraper|Universal Movie Scraper Add-on]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Folder &amp;amp; Naming Conventions =&lt;br /&gt;
Once the Source has been created on your drive, there are are two options on how to store your movies. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Movie Folder ==&lt;br /&gt;
This is the &#039;&#039;&#039;{{Kodi}} best practide&#039;&#039;&#039; method for naming and storing movie media. See the two images below.&lt;br /&gt;
&lt;br /&gt;
*Placing movies in their own folder allows saving of local artwork and nfo files alongside the movie file.&lt;br /&gt;
*You have the choice of using the Short or Long name format for artwork&lt;br /&gt;
*Using this method will provide the safest and most accurate scrape of your media collection. &lt;br /&gt;
*If using VIDEO_TS or BDMV folder structure you must enable &#039;&#039;&#039;Recursive&#039;&#039;&#039; lookup when adding the source directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery mode=&amp;quot;packed-overlay&amp;quot; widths=&amp;quot;600px&amp;quot; heights=&amp;quot;350px&amp;quot;&amp;gt;&lt;br /&gt;
File:Video-Movie Folder File Structure.png|Image 1- Folder structure&lt;br /&gt;
File:MovieNaming02.jpg|Image 2- Movie Names&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notes:&#039;&#039;&#039; &lt;br /&gt;
*There is some limited flexibility to correct naming, but not all methods are 100% guaranteed to work.&lt;br /&gt;
*Some skins use modified filenaming to display &#039;&#039;&#039;&#039;&#039;[[Media_flags|Media Flags]]&#039;&#039;&#039;&#039;&#039;. These apply to the filename, not the folder name. Check the forum of your skin for correct use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Naming&#039;&#039;&#039;&lt;br /&gt;
*The name used for the folder and video file is the movie name as displayed at TheMovieDB (we are using default TheMovieDB scraper).&lt;br /&gt;
*The second image above is a screenshot of the &#039;&#039;Blade Runner 2049&#039;&#039; movie entry at TheMovieDatabase site. The name of the movie folder and video file should match the name displayed at the scraper site, as shown in the two images above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Folder&#039;&#039;&#039;&lt;br /&gt;
*Inside the Source folder, create a folder named with the movie title&lt;br /&gt;
*Movie &#039;&#039;&#039;Folder&#039;&#039;&#039; names must contain the &#039;&#039;&#039;Title&#039;&#039;&#039; and should contain the &#039;&#039;&#039;Year&#039;&#039;&#039;. Although not a strict requirement, the year should be in open/close parenthesis (the &#039;&#039;&#039;(&#039;&#039;&#039; and &#039;&#039;&#039;)&#039;&#039;&#039; characters, respectively).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;File&#039;&#039;&#039;&lt;br /&gt;
*Within the new movie folder, save the video file&lt;br /&gt;
*The setting &#039;&#039;&#039;Movies are in separate folders that match the movie title&#039;&#039;&#039; which is located in the Set Content settings page of the Source has the following effect:&lt;br /&gt;
**If &#039;&#039;&#039;Enabled&#039;&#039;&#039; {{Kodi}} will use the &#039;&#039;&#039;folder&#039;&#039;&#039; name to scrape the movie&lt;br /&gt;
**If &#039;&#039;&#039;Disabled&#039;&#039;&#039; {{kodi}} will use the &#039;&#039;&#039;filename&#039;&#039;&#039; to scrape the movie&lt;br /&gt;
*In light of the above, and because many users are unaware or forget this setting, {{Kodi}} recommends naming the movie file the same as the folder name as shown in the example image above&lt;br /&gt;
*The &#039;&#039;&#039;filename&#039;&#039;&#039; can be modified to include &#039;&#039;&#039;&#039;&#039;[[Media_flags|Media Flags]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Filename Only ==&lt;br /&gt;
[[File:Video-Movie File Structure.png|400px|right]]&lt;br /&gt;
&lt;br /&gt;
An alternate method of storing your movies is to save all the movie files inside the Source folder and omit the Movie folder. Also known as a &#039;&#039;&#039;flat folder&#039;&#039;&#039; structure. See image to right.&lt;br /&gt;
&lt;br /&gt;
This method requires that the movie file is named correctly as Kodi is forced to use the movie &#039;&#039;&#039;filename&#039;&#039;&#039; to match the entry at the scraper site.&lt;br /&gt;
&lt;br /&gt;
The movie filename must contain the &#039;&#039;&#039;Title&#039;&#039;&#039; and should contain the &#039;&#039;&#039;Year&#039;&#039;&#039;. Although not a strict requirement, the year should be in parenthesis. It should match the entry at the scraper site as shown in the above images.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are disadvantages using this method:&lt;br /&gt;
*With larger libraries, this method can become untidy and cumbersome to maintain&lt;br /&gt;
*If you use nfo files and save local artwork, the folder will become even more cluttered&lt;br /&gt;
*Some Artwork add-ons will not work with this method as they require a Movie Folder&lt;br /&gt;
*Saving locally stored Artwork will be problematic.&lt;br /&gt;
*The option &#039;&#039;&#039;Movies are in separate folders that match the movie title&#039;&#039;&#039; in the Set Content settings page of the Source does not apply to this method.&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Extra Video Files ==&lt;br /&gt;
It is not uncommon to have extra video files that are somehow related to the main movie. Clips such as bloopers, interviews with cast and crew, production methods, behind the scenes, etc.&lt;br /&gt;
&lt;br /&gt;
{{Kodi}} will see all these additional video files saved inside the movie folder and attempt to scrape them, which will cause incorrect and unwanted multiple entries in the library. How {{kodi}} actually treats these will depend upon which settings are enabled and which folder structure and naming convention is in use.&lt;br /&gt;
&lt;br /&gt;
To safely store extra video files along with your movie, and have them accessible within {{kodi}}, you will need to install the &#039;&#039;&#039;Extras&#039;&#039;&#039; add-on. Follow the instructions in the link below to create the correct folder structure. This add-on will only work with Movie Folders.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Requires the use of Movie Folders&#039;&#039;&#039;&lt;br /&gt;
:{{see|Extras}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;&#039;{{big|{{red|The remainder of this page deals with Special Use cases and can be safely ignored. Most libraries will not require implementing the following additional name extensions.}}}}&#039;&#039;&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;{{linear-gradient|left|#a1f5e4, #f5f5a1}}&amp;quot;&amp;gt;{{next|[[Naming_video_files/TV_shows|&#039;&#039;&#039;Naming TV Shows&#039;&#039;&#039;]]}} &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Stub and Stream Files =&lt;br /&gt;
{{main|Media_stubs}}&lt;br /&gt;
{{#lst:Media_stubs|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{main|Internet_video_and_audio_streams}}&lt;br /&gt;
{{#lst:Internet_video_and_audio_streams|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Media Tags / Flags =&lt;br /&gt;
{{main|Media flags}}&lt;br /&gt;
&lt;br /&gt;
[[File:480.png|50px]] [[File:1080.png|50px]] [[File:720.png|50px]] [[File:1080 n.png|50px]] [[File:480-1.png|50px]]&lt;br /&gt;
[[File:Divx.png|80px]] [[File:Xvid.png|80px]] [[File:H264.png|80px]] [[File:Bluray.png|80px]] [[File:Dvd.png|80px]] [[File:Avc1.png|80px]]&lt;br /&gt;
[[File:1.33.png|50px]] [[File:1.66.png|50px]] [[File:2.20.png|50px]] [[File:2.35.png|50px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Media flags are icons in Kodi that displays the meta-information from the media file of a movie, TV show or music title. They are skin specific, and what works in one skin, may not work in another skin. It is always best to check with the skin sub-forum which flags and tags are used.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;It is important to note that the skin will display these flags even when these extensions are not used.&#039;&#039;&#039; The only difference being that without the extensions, the movie must be played first in order for {{kodi}} to read the audio and video codec data. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The actual audio and video codec data will override any extension used.&#039;&#039;&#039; This means that if you set the extension of, say, &#039;&#039;&#039;.ATMOS&#039;&#039;&#039; but the video file only has a stereo track, then the &#039;&#039;&#039;.ATMOS&#039;&#039;&#039; flag will be removed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example- note that movie folders are used, and the folder is simply named while the filename has been modified with extensions.&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; ! style=&amp;quot;width:400px; background-color:#ffffcc; text-align:left;&amp;quot;| ...\Paul (2011)\Paul (2011).4K.HDR.Atmos.mkv&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3D movies ==&lt;br /&gt;
{{Main|3D}}&lt;br /&gt;
Some 3D movies might need an additional file name extension to be identified by Kodi as a 3D movie. See &#039;&#039;&#039;[[3D]]&#039;&#039;&#039; for details on that additional extension, and when it is needed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Split Video Files =&lt;br /&gt;
Also known as File Stacking, allows you to combine multiple movie files so they appear and play as the one movie. No longer a common requirement, but still available in {{kodi}} should it be needed.&lt;br /&gt;
&lt;br /&gt;
An example of this use is the Special Extended DVD Edition of &#039;&#039;The Lord of the Rings- The Fellowship of the Ring&#039;&#039;. Due to the length of the movie, the movie was split and released on two DVD&#039;s requiring a DVD change half way through the movie. This means that when storing this movie, the rip creates two separate movie files. When watching the movie, there will be an interruption when the first part ends and the second part needs to be selected to play.&lt;br /&gt;
&lt;br /&gt;
Two options to overcome this issue:&lt;br /&gt;
#Combine both movie files into a single movie file. &lt;br /&gt;
#Leave them as Split Video Files, but allow Kodi to combine them into the one library entry (kodi does not combine the actual movie files)&lt;br /&gt;
&lt;br /&gt;
To use this function the following steps are required:&lt;br /&gt;
#The setting &#039;&#039;&#039;Combine split video items&#039;&#039;&#039; must be enabled in the Settings menu. &#039;&#039;&#039;&#039;&#039;See: [[Settings/Media/Videos#Files|Settings&amp;gt;Media&amp;gt;Files]]&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
#Modify the movie file names, as described below, so that Kodi recognises them as Split Video Files&lt;br /&gt;
#Can only be used with the &#039;&#039;&#039;Movie Folder &amp;amp; Filename&#039;&#039;&#039; method described above&lt;br /&gt;
&lt;br /&gt;
The default expressions will NOT stack files which use only a number without the extensions stated below (eg movie1.avi, movie2.avi). This is intentional due to false positives which can occur with sequels, eg Die Hard 1, Die Hard 2, Die Hard 3, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Movie Files ==&lt;br /&gt;
&#039;&#039;&#039;These are for multi-part video files in the same Movie folder.&#039;&#039;&#039; eg *.mkv, *.mp4, *.avi etc&lt;br /&gt;
&lt;br /&gt;
The following are default stacking extensions that can be added to file names. &lt;br /&gt;
[[File:Video-Movie FolderStacking.png|600px|right]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; &lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;7&amp;quot; style=&amp;quot;background-color:#ffffcc;&amp;quot; | # = 1 thru 9 OR A thru D. No space.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; ! style=&amp;quot;width:100px; text-align:left;&amp;quot;| Default Stacking Extensions&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|part#&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|cd#&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|dvd#&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|pt#&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|disk#&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|disc#&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;7&amp;quot; style=&amp;quot;background-color:#ffffcc;&amp;quot; | # = A thru D. No space.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; ! style=&amp;quot;width:100px; text-align:left;&amp;quot;| Default Stacking Extensions&lt;br /&gt;
| colspan=&amp;quot;7&amp;quot; |moviename&#039;&#039;&#039;#&#039;&#039;&#039;.ext&amp;lt;br /&amp;gt;&lt;br /&gt;
eg.&amp;lt;br /&amp;gt;&lt;br /&gt;
e:\Movies 1\Lucy (2014)A.mkv&amp;lt;br /&amp;gt;&lt;br /&gt;
e:\Movies 1\Lucy (2014)B.mkv&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== DVD &amp;amp; BluRay Folders ==&lt;br /&gt;
If you have preserved the DVD or Bluray folder structure, then use this method for folder stacking.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;prettytable&amp;quot; &lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot; style=&amp;quot;background-color:#ffffcc;&amp;quot; | # = 1 thru 9. No space.&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; ! style=&amp;quot;width:100px; text-align:left;&amp;quot;| Default Stacking Extensions&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|cd#&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|dvd#&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|disk#&lt;br /&gt;
|style=&amp;quot;width:50px; text-align:left;&amp;quot;|disc#&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Advanced Stacking Options ==&lt;br /&gt;
File stacking can be fine-tuned by the user to match obscure cases using the &#039;&#039;&#039;[[Advancedsettings.xml#moviestacking|&amp;lt;moviestacking&amp;gt;]]&#039;&#039;&#039; and &#039;&#039;&#039;[[Advancedsettings.xml#folderstacking|&amp;lt;folderstacking&amp;gt;]]&#039;&#039;&#039; advancedsettings.xml settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{top}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;{{linear-gradient|left|#a1f5e4, #f5f5a1}}&amp;quot;&amp;gt;{{next|[[Naming_video_files/TV_shows|&#039;&#039;&#039;Naming TV Shows&#039;&#039;&#039;]]}} &amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{updated|18}}&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
[[Category:Index]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Guides]]&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:Karellen]]&lt;br /&gt;
[[Category:Video library]]&lt;br /&gt;
[[Category:General topics]]&lt;br /&gt;
[[Category:First time user]]&lt;br /&gt;
[[Category:Quick Start Guide]]&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=User_talk:Muddysteel&amp;diff=172078</id>
		<title>User talk:Muddysteel</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=User_talk:Muddysteel&amp;diff=172078"/>
		<updated>2019-06-16T16:53:47Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: /* Who Be Muddysteel? */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Welcome to &#039;&#039;Official Kodi Wiki&#039;&#039;!&#039;&#039;&#039;&lt;br /&gt;
We hope you will contribute much and well.&lt;br /&gt;
You will probably want to read the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents help pages].&lt;br /&gt;
Again, welcome and have fun! [[User:Davu|Davu]] ([[User talk:Davu|talk]]) 05:36, 7 February 2019 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Who Be Muddysteel? ==&lt;br /&gt;
&lt;br /&gt;
Long time computer geek.  Started a ways back with BASIC, migrated to COBOL, then Pascal, then C then.. lost count.  (Never got much past C++ primers; too much a hack-over of C vs. other from-the-ground-up languages like Java. REALLY interested in [https://en.wikipedia.org/wiki/Rust_(programming_language Rust] and [https://en.wikipedia.org/wiki/Go_(programming_language) GO], especially since Java did not fuse to the underlying O/S all that well.)&lt;br /&gt;
&lt;br /&gt;
Professionally, software engineer with a pedigree that ranges from discrete real-time control system stuff, to enterprise application apps and the surrounding infrastructure / support. Currently employed with an eye on developing enterprise apps that are from the ground up, built to be secure. Lots of time under the hood with [https://en.wikipedia.org/wiki/Java_Cryptography_Extension JCE] and [https://en.wikipedia.org/wiki/Hardware_security_module HSMs] of different flavors.&lt;br /&gt;
&lt;br /&gt;
Nosing into Kodi and its Wiki &#039;cause there&#039;s a ton of spare-time work to be done cleaning stuff up - as my experience with Kodi evolves, will turn my Wiki-izing towards those topics I have the opportunity to touch upon.  Might even try a (C++) patch or two.. :)&lt;br /&gt;
&lt;br /&gt;
[[User:Muddysteel|Muddysteel]] ([[User talk:Muddysteel|talk]]) 16:53, 16 June 2019 (UTC)&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=User:Muddysteel&amp;diff=172077</id>
		<title>User:Muddysteel</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=User:Muddysteel&amp;diff=172077"/>
		<updated>2019-06-16T16:41:37Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi!&lt;br /&gt;
&lt;br /&gt;
I&#039;m Dave M, a Kodi noob with lots of experience with computers - building, configuring, coding, etc.  I&#039;m investing in Kodi as a front-end to a variety of services including Myth, Amazon and Netflix.&lt;br /&gt;
&lt;br /&gt;
= Formatting Tests using Kodi&#039;s Mediawiki =&lt;br /&gt;
&lt;br /&gt;
Inside a paragraph {{Tip|This is an enclosed tip}} with paragraph ending here.&lt;br /&gt;
&lt;br /&gt;
Inside a paragraph {{Tip}} Outside tip. with paragraph ending here.&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=User:Karellen&amp;diff=172076</id>
		<title>User:Karellen</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=User:Karellen&amp;diff=172076"/>
		<updated>2019-06-16T16:41:19Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;http://kodi.wiki/view/User:Karellen/scratchpad&lt;br /&gt;
&lt;br /&gt;
http://kodi.wiki/view/User:Karellen/scratchpad01&lt;br /&gt;
&lt;br /&gt;
http://kodi.wiki/view/User:Karellen/scratchpad02&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Hi @karellen -&lt;br /&gt;
&lt;br /&gt;
Just read your comment on my [[User:Muddysteel|muddysteel - what happens when your tank gets wet]] page. Totally agree on the disproportionate number of historical changes vs. using &#039;&#039;&#039;Preview&#039;&#039;&#039;, which is my usual route. (That and dropping decent comments on historical comment for the edit.)&lt;br /&gt;
&lt;br /&gt;
The problem was in tweaking a template: Cannot see its effects unless it gets committed. I toyed briefly with setting up a new template/testing driving/then deploying, but decided against the extra work of that approach.&lt;br /&gt;
&lt;br /&gt;
In any case, any edits I do on the more mainstream articles will show less changes between the test-drive (preview) and actual commit. Thanks for the feedback!&lt;br /&gt;
&lt;br /&gt;
- [[User:Muddysteel|muddysteel]] Sun Jun 16 16:40:49 UTC 2019&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170472</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170472"/>
		<updated>2019-06-15T21:33:32Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;div style=&amp;quot;margin: 8px 0px 8px 0px&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;padding: 3px 1px 2px 1px; border-width: 1px 0px 1px 0px; border-style: solid; border-color: #286a23; display:inline-block&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;: {{#if: {{{1|}}}|{{{1|}}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170471</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170471"/>
		<updated>2019-06-15T21:33:12Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;div style=&amp;quot;margin: 5px 0px 5px 0px&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;padding: 3px 1px 2px 1px; border-width: 1px 0px 1px 0px; border-style: solid; border-color: #286a23; display:inline-block&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;: {{#if: {{{1|}}}|{{{1|}}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170470</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170470"/>
		<updated>2019-06-15T21:32:50Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;div style=&amp;quot;margin: 5px 0px 5px 0px&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;padding: 2px 1px 2px 1px; border-width: 1px 0px 1px 0px; border-style: solid; border-color: #286a23; display:inline-block&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;: {{#if: {{{1|}}}|{{{1|}}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170469</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170469"/>
		<updated>2019-06-15T21:32:33Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;div style=&amp;quot;margin: 5px 0px 5px 0px&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;padding: 2px 1px 2px 1px; border-width: 1px 0px 2px 0px; border-style: solid; border-color: #286a23; display:inline-block&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;: {{#if: {{{1|}}}|{{{1|}}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170468</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170468"/>
		<updated>2019-06-15T21:31:26Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;div style=&amp;quot;margin: 5px 0px 5px 0px&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;padding: 2px 1px 2px 1px; border-width: 2px 0px 2px 0px; border-style: inset; border-color: #286a23; display:inline-block&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;: {{#if: {{{1|}}}|{{{1|}}}&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170467</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170467"/>
		<updated>2019-06-15T21:29:08Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: Undo revision 170466 by Muddysteel (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;table cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; style=&amp;quot;background: transparent;&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td nowrap=&amp;quot;nowrap&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;:{{#if: {{{1|}}}|&amp;lt;/td&amp;gt;&amp;lt;td valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-left:0.5em;&amp;quot;&amp;gt;{{{1|}}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170466</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170466"/>
		<updated>2019-06-15T21:27:16Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;div style=&amp;quot;margin: 5px 0px 5px 0px&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;padding: 2px 1px 2px 1px; border-width: 2px 0px 2px 0px; border-style: inset; border-color: #286a23; display:inline-block&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;: {{#if: {{{1|}}}|&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170465</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170465"/>
		<updated>2019-06-15T20:39:49Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;table cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; style=&amp;quot;background: transparent;&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td nowrap=&amp;quot;nowrap&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;:{{#if: {{{1|}}}|&amp;lt;/td&amp;gt;&amp;lt;td valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-left:0.5em;&amp;quot;&amp;gt;{{{1|}}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170464</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170464"/>
		<updated>2019-06-15T20:39:22Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;span style=&amp;quot;padding: 1px 2px 1px 2px; border: solid 5px black;&amp;quot;&amp;gt;&amp;lt;table cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; style=&amp;quot;background: transparent;&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td nowrap=&amp;quot;nowrap&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;:{{#if: {{{1|}}}|&amp;lt;/td&amp;gt;&amp;lt;td valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-left:0.5em;&amp;quot;&amp;gt;{{{1|}}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/span&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170463</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170463"/>
		<updated>2019-06-15T20:38:50Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;span style=&amp;quot;padding: 1px 2px 1px 2px; border: solid 5px #ffeaa5;&amp;quot;&amp;gt;&amp;lt;table cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; style=&amp;quot;background: transparent;&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td nowrap=&amp;quot;nowrap&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;:{{#if: {{{1|}}}|&amp;lt;/td&amp;gt;&amp;lt;td valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-left:0.5em;&amp;quot;&amp;gt;{{{1|}}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/span&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170462</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170462"/>
		<updated>2019-06-15T20:38:17Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;span style=&amp;quot;padding: 1px 2px 1px 2px; border: solid 1px #ffeaa5;&amp;quot;&amp;gt;&amp;lt;table cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; style=&amp;quot;background: transparent;&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td nowrap=&amp;quot;nowrap&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;:{{#if: {{{1|}}}|&amp;lt;/td&amp;gt;&amp;lt;td valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-left:0.5em;&amp;quot;&amp;gt;{{{1|}}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/span&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big iline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170461</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170461"/>
		<updated>2019-06-15T20:38:02Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;span style=&amp;quot;padding: 1px 2px 1px 2px; border: solid 1px #ffeaa5;&amp;quot;&amp;gt;&amp;lt;table cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot; style=&amp;quot;background: transparent;&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td nowrap=&amp;quot;nowrap&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;:{{#if: {{{1|}}}|&amp;lt;/td&amp;gt;&amp;lt;td valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-left:0.5em;&amp;quot;&amp;gt;{{{1|}}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/span&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big iline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170460</id>
		<title>Template:Tip</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Template:Tip&amp;diff=170460"/>
		<updated>2019-06-15T20:33:35Z</updated>

		<summary type="html">&lt;p&gt;Muddysteel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{#if: {{{1|}}}|&amp;lt;table cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; style=&amp;quot;background: transparent;&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td nowrap=&amp;quot;nowrap&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;}}&amp;lt;span style=&amp;quot;position: relative; top: -2px;&amp;quot;&amp;gt;[[File:Light bulb icon tips.png|18px|Tip|link=]]&amp;lt;/span&amp;gt; &#039;&#039;&#039;Tip&#039;&#039;&#039;: {{#if: {{{1|}}}|&amp;lt;/td&amp;gt;&amp;lt;td valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-left:0.5em;&amp;quot;&amp;gt;{{{1|}}}&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
The following displays the tip icon, the word &#039;Tip&#039; followed by whatever text, images, etc. you like:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip}}&amp;lt;/nowiki&amp;gt; big iline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip}} big inline tip. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
The following will render the tip into its own block:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the &amp;lt;nowiki&amp;gt;{{tip|big tip in its own block}}&amp;lt;/nowiki&amp;gt;. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
will render as:&lt;br /&gt;
&lt;br /&gt;
This is a paragraph with the {{tip|big tip in its own block}}. And whatever else goes there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Muddysteel</name></author>
	</entry>
</feed>