2019-11-26, 13:34
Hi,
I have TV organized in folders, where I can mix several qualities of the same TV show in the same folders.
For example...
TV Shows
- Game of thrones
------ Season 1 [1080p BDremux] [DUAL]
------ Season 1 [1080p h264 MicroHD] [DUAL]
------ Season 1 [4K Remux ] [DUAL]
------ Season 2 [1080p BDremux] [DUAL]
------ Season 2 [1080p h264 MicroHD] [DUAL]
------ Season 3 [4K Remux ] [DUAL]
TMM groups perfectly the files so when looking at a specific episode, you can see it has 3 files (one for each version). See "picture 01.jpg"
What I want is to export all video files with its properties into a template, which is the following one...
My problem is that when exporting, TMM just export one of each episodes, which seem to be ramdon... once it is 4K Remux, others is 1080p Remux and others is 1080p MicroHD.
I have been looking at the template, and there is a field which is "episode.mainVideoFile.videoResolution", so it seems it is just showing one episode info, the "main one".
I was wondering how can I change the template, to be able to list ALL EPISODES (video files) from the TV show, not just the main one.
Thanks in advanced.
I have TV organized in folders, where I can mix several qualities of the same TV show in the same folders.
For example...
TV Shows
- Game of thrones
------ Season 1 [1080p BDremux] [DUAL]
------ Season 1 [1080p h264 MicroHD] [DUAL]
------ Season 1 [4K Remux ] [DUAL]
------ Season 2 [1080p BDremux] [DUAL]
------ Season 2 [1080p h264 MicroHD] [DUAL]
------ Season 3 [4K Remux ] [DUAL]
TMM groups perfectly the files so when looking at a specific episode, you can see it has 3 files (one for each version). See "picture 01.jpg"
What I want is to export all video files with its properties into a template, which is the following one...
Code:
<?xml version="1.0" encoding="utf-8"?>
<tvshows>
<!-- iterate over all TV shows -->
${foreach tvShows show}
${foreach show.episodes episode}
<tvshow>
<title>${show.title}</title>
<year>${show.year}</year>
<seasons>${show.seasonCount}</seasons>
<episodes>${show.episodeCount}</episodes>
<Nombre>${episode.title}</Nombre>
<season>${episode.season}</season>
<episode>${episode.episode}</episode>
<date>${episode.firstAiredFormatted}</date>
<filesize>${episode.mainVideoFile.filesize}</filesize>
<extension>${episode.mainVideoFile.extension}</extension>
<codec>${episode.mainVideoFile.videoCodec}</codec>
<format>${episode.mainVideoFile.videoFormat}</format>
<resolution>${episode.mainVideoFile.videoResolution}</resolution>
<bit>${episode.mainVideoFile.biteRateInKbps}</bit>
<categoria>${episode.mainVideoFile.videoDefinitionCategory}</categoria>
<framerate>${episode.mainVideoFile.frameRate}</framerate>
<aspectratio>${episode.mainVideoFile.aspectRatio}</aspectratio>
<hdr>${episode.mainVideoFile.HDR}</hdr>
<duration>${episode.mainVideoFile.duration}</duration>
<audiocodec>${foreach episode.videoFiles videofile} ${foreach videofile.audioStreams audio} ${audio.codec}, ${end}${end}</audiocodec>
<audioChannels>${foreach episode.videoFiles videofile} ${foreach videofile.audioStreams audio} ${audio.audioChannels}, ${end}${end}</audioChannels>
<audiobitrate>${foreach episode.videoFiles videofile} ${foreach videofile.audioStreams audio} ${audio.bitrateInKbps}, ${end}${end}</audiobitrate>
<subtitle>${episode.mainVideoFile.subtitlesAsString}</subtitle>
<path>${episode.mainVideoFile.path}</path>
<filename>${episode.mainVideoFile.filename}</filename>
</tvshow>
${end}${end}
</tvshows>
My problem is that when exporting, TMM just export one of each episodes, which seem to be ramdon... once it is 4K Remux, others is 1080p Remux and others is 1080p MicroHD.
I have been looking at the template, and there is a field which is "episode.mainVideoFile.videoResolution", so it seems it is just showing one episode info, the "main one".
I was wondering how can I change the template, to be able to list ALL EPISODES (video files) from the TV show, not just the main one.
Thanks in advanced.