Kodi Community Forum
Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+---- Forum: Ember Media Manager (https://forum.kodi.tv/forumdisplay.php?fid=195)
---- Thread: Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) (/showthread.php?tid=236306)



Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) - knossos21 - 2015-08-22

Is there a reference for the variables that can be used in the Expert Settings for file naming?

Specifically I would like to know if there is an option for naming TV Show art in a format like <show>-fanart.jpg as was available in EMM 1.3, but a list of all available options would be nice.

The ones I know of and have been able to successfully use with TV Shows are:

<seasonpath> which inserts the season folder (e.g. season 05)

season{x} where x is the digits to pad the season (e.g. season{2} is season05, season{4} is season0005)

<filename> which inserts the filename excluding the extension (e.g. Game of Thrones - S02E03). This only works for Episode, not TV Show, All Seasons, or Season


RE: Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) - DanCooper - 2015-08-22

No, there is no list. I'll catch up soon.
MovieSets, TV Seasons and TV Shows has no video files, so we can't use <filename>.

Here are the available variables:

Movies:
Code:
<filename>
Movie video file name without extension. You can additionally enable Stack <filename> to stack file names like "Avatar.CD1" to "Avatar" (Kodi default for multi disks).

Tabs in Movie Expert Settings:
Single will be use for movies that are tagged as Movies are in separarte folders by source settings.
Multi will be used for movies that are not tagged as Movies are in separarte folders by source settings (all movie are in a common folder).
VIDEO_TS is for movies with VIDEO_TS file structure.
BDMV is for movies with BDMV file structure.


MovieSets:
Code:
<setname>
The name of the MovieSet


TV Shows:
no special values


TV Seasons:
Code:
<seasonpath>
An attempt is made to identify an existing Season directory. To identify a regex is used. The regex used are:

Code:
(?<season>specials?)$
^(s(eason)?)?[\W_]*(?<season>[0-9]+)$
[^\w]s(eason)?[\W_]*(?<season>[0-9]+)
The Regex can't be changed in Settings, so "Staffel" (german word for Season) does not work.


Code:
{#}
Will be replaced with season number, the digit inside the brace define the quantity to pad the season number. Example for images of Season 5:

Code:
Season{0}-banner.jpg = Season5-banner.jpg
season{1}-banner.jpg = season5-banner.jpg
Staffel {2} Banner.jpg = Staffel 05 Banner.jpg
SeasonBanner{3}.jpg = SeasonBanner005.jpg


TV Episodes:
Code:
<filename>
Episode video file name without extension.


RE: Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) - DanCooper - 2015-08-22

The thread is now sticked.


RE: Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) - knossos21 - 2015-08-24

Thanks for the quick and comprehensive reply.

So just to verify, there is no way to do <show>-fanart.jpg for TV shows currently, correct?


RE: Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) - DanCooper - 2015-08-24

(2015-08-24, 17:14)knossos21 Wrote: Thanks for the quick and comprehensive reply.

So just to verify, there is no way to do <show>-fanart.jpg for TV shows currently, correct?

Nope. But I can add <showname> if you add a request in our bug tracker.


RE: Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) - knossos21 - 2015-10-22

I noticed you denied the <showname> feature request saying:
Quote:it's not possible because it is not yet known when importing. We can't search an NFO by TV Show Title if we don't know the title before we have read the NFO.

I'm not sure if I understand the problem, since it's functionality from Ember 1.3.0.20 that I am hoping to get back. Maybe my request was misunderstood. The point is not to use it to search for the series, but to use the TV show's name to save metadata for Fanart, Banners, etc.

Once again I would like to thank you for all your hard work on Ember, it's definitely appreciated.


RE: Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) - DanCooper - 2015-10-23

Yes, but the problem is that we don't know the tv show name if we add a tv show folder at the first time. So we can't search for a "family guy.nfo" if we don't know that the tv show is called "Family Guy".
I can't remember that this was an feature of 1.3.0.20.


RE: Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) - Cromseth - 2020-09-09

Is there any way to get the extrafanart stored as Kodi default? I means not random name in "extrafanart" folder if not "<>-fanart1.ext", "<>-fanart2.ext", etc.

Thanks!


RE: Expert File Naming Variables (e.g. <seasonpath>, <filename>, etc) - DanCooper - 2020-09-10

(2020-09-09, 17:50)Cromseth Wrote: Is there any way to get the extrafanart stored as Kodi default? I means not random name in "extrafanart" folder if not "<>-fanart1.ext", "<>-fanart2.ext", etc.
Not yet. <filename>-fanart#.jpg is a "new" default that actually isn't implemented. The advantage of the current naming is that the files can be clearly identified using the file names, as they correspond to the names of the images on the server.


This forum uses Lukasz Tkacz MyBB addons.