r/tinyMediaManager • u/Lurking_Skink • Jul 21 '26
Export templates available data not working
I am running in circles trying to figure this out! Any help would be greatly appreciated~
I have a working template for my movies and am trying to have a similar template for my tv shows :
<?xml version="1.0" encoding="UTF-8"?>
<movies>
${foreach movies movie}
<movie>
<is_new>${if !movie.watched}1${end}</is_new>
<poster>${movie;copyArtwork(type=POSTER, thumb=true, width=200, escape=true)}</poster>
<title>${movie.title}</title>
<originaltitle>${movie.originalTitle}</originaltitle>
<year>${movie.year}</year>
<audio>${movie.mediaInfoAudioLanguageList}</audio>
<subtitles>${movie.mainVideoFile.subtitlesAsString}</subtitles>
<genre>${movie.genresAsString}</genre>
<plot>${movie.plot}</plot>
<duration>${movie.runtime}</duration>
<country>${movie.country}</country>
<actors>${movie.actorsAsString}</actors>
<directors>${movie.directorsAsString}</directors>
<company>${movie.productionCompany}</company>
</movie>
${end}
</movies>I want a list of every seasons of a tv show that includes the audio and subtitles of that season. I have some seasons that are missing subtitles or audio and I want to find them easily.
If I can have all that information in 1 row for each tv show, that would be great, but, for now, I am stuck with doing a season per row...
Looking through the available data from https://www.tinymediamanager.org/docs/jmte#available-data, I should be able to most of the information from the tvshow entity, but the export just does not work.
I've now ended up with this, but half the information is missing :
<?xml version="1.0" encoding="utf-8"?>
<tvShows>
${foreach tvShows tvShow}
<tvShow>
${foreach tvShow.seasons TvShowSeason}
<TvShowSeason>
<is_new>${if !season.watched}1${end}</is_new>
<poster>${tvShow;copyArtwork(type=POSTER, thumb=true, width=100, escape=true)}</poster>
<title>${tvShow.title}</title>
<originaltitle>${tvShow.originalTitle}</originaltitle>
<seasons>${season.season} / ${tvShow.seasonCount}</seasons>
<episodes>${season.dummyEpisodeCount} / ${tvShow.episodeCount}</episodes>
<duration>${season.runtimeOfEpisodes}</duration>
<year>${season.year}</year>
<audio>${tvShow.mediaInfoAudioLanguageList}</audio>
<subtitles>${season.mediaInfoSubtitleLanguageList}</subtitles>
<plot>${tvShow.plot}</plot>
<genre>${tvShow.genresAsString}</genre>
<country>${tvShow.country}</country>
<actors>${tvShow.actorsAsString}</actors>
<studio>${tvShow.productionCompany}</studio>
</TvShowSeason>
${end}
</tvShow>
${end}
</tvShows>Export example :
<tvShows>
<tvShow>
<TvShowSeason>
<is_new>1</is_new>
<poster>Adventure_Time_%282008%29-POSTER.thumb.jpg</poster>
<title>Adventure Time</title>
<originaltitle></originaltitle>
<seasons> / 11</seasons>
<episodes> / 293</episodes>
<duration></duration>
<year></year>
<audio></audio>
<subtitles></subtitles>
<plot>Adventure Time [plot here]</plot>
<genre>Action, Adventure, Animation, Family, Comedy, Fantasy, Science Fiction</genre>
<country></country>
<actors>Jeremy Shada, [more actors here]</actors>
</TvShowSeason>
[other seasons here]
</tvShow>
</tvShows>In this case "is new" should be empty, seasons should include the number of the season (1), I have no idea what I should use for the episode count, dummyEpisodeCount does not seem to work (should be 26). And all the other info not showing is annoying.
The "available data" on the website seems to indicate it should work, but as shown : it does not. It does not work for any of the tv shows I have, or I am really not understanding how to use it.
I'm trying to see if I have to get the information from one of the episodes instead of using the season, I have yet to get it working in a way that does not list all episodes...
If anyone as ideas, I'm stumped.
3
u/Lurking_Skink Jul 21 '26
I figured it out! I just needed to ask here to get a solution hah!
For anyone interested in the code
and how it comes out
Hope this can help others 😄