Solved Export no longer working with v3
#1
Even a simple line like the following produces a crash because of director not defined.

Here's the test export:
${foreach movies movie}"${movie.title}";"${movie.originalTitle}";"${movie.year}";"${movie.director}";${end}

Here's the error:
Error while parsing 'movie.director' at location (1:85)

Here are a little more complex templates that worked with v2 but don't work with the latest v3:

Videos (template.conf):
name=Videos
type=movie
list=videos.jmte
extension=csv
description=Videos complete


Videos (videos.jmte):
${foreach movies movie}"${movie.title}";"${movie.originalTitle}";"${movie.year}";"${movie.director}";"${foreach movie.actors actor}${if index_actor=1}${actor.name},${end}${if index_actor=2}${actor.name},${end}${if index_actor=3}${actor.name},${end}${end}";"${movie.imdbId}";"${movie.tmdbId}";"${movie.top250}";"${movie.watched}";"${movie.videoIn3D}";"${movie.dateAddedAsString}";"${foreach movie.genres genre ,}${genre}${end}";"${foreach movie.tags tag ,}${tag}${end}";${foreach movie.videoFiles vf}"${vf.path}";"${vf.filename}";"${vf.filesize}";"${vf.durationHHMMSS}";"${vf.videoCodec}";"${vf.videoWidth}";"${vf.videoHeight}";"${vf.biteRateInKbps}";${foreach vf.audioStreams as}"${as.codec}";"${as.channels}";"${as.language}";"${as.bitrateInKbps}";${end}${end}
${end}


Series (template.conf):
name=Series
type=tv_show
list=series.jmte
extension=csv
description=Series complete


Series (series.jmte):
${foreach tvShows show}${foreach show.episodes episode}"${show.title}";"${show.year}";"${foreach episode.actors actor}${if index_actor=1}${actor.name},${end}${if index_actor=2}${actor.name},${end}${if index_actor=3}${actor.name},${end}${end}";"${show.dateAddedAsString}";"${foreach show.genres genre ,}${genre}${end}";"${foreach show.tags tag ,}${tag}${end}";"${show.imdbId}";"${show.tvdbId}";"${show.watched}";"${episode.season}";"${episode.episode}";"${episode.title}";"${episode.year}";"${foreach episode.actors actor}${if index_actor=1}${actor.name},${end}${if index_actor=2}${actor.name},${end}${if index_actor=3}${actor.name},${end}${end}";"${foreach episode.tags tag ,}${tag}${end}";"${episode.watched}";${foreach episode.videoFiles vf}"${vf.path}";"${vf.filename}";"${vf.filesize}";"${vf.durationHHMMSS}";"${vf.videoCodec}";"${vf.videoWidth}";"${vf.videoHeight}";"${vf.biteRateInKbps}";${foreach vf.audioStreams as}"${as.codec}";"${as.channels}";"${as.language}";"${as.bitrateInKbps}";${end}${end}
${end}${end}
#2
not a bug, but missed to update the docs for the templates:

directors/writers are no more string but Person objects like the actors -> so you can use the same logic as for actors

EDIT: just had a look at the code: you could use directorsAsString or writersAsString to achieve the same as in your v2 templates
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
#3
updated the wiki right now https://gitlab.com/tinyMediaManager/tiny...-Templates
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
#4
(2019-07-19, 07:19)mlaggner Wrote: updated the wiki right now https://gitlab.com/tinyMediaManager/tiny...-Templates

Thanks a lot.

Added the changes according to the WiKi and the exports are working again.

Logout Mark Read Team Forum Stats Members Help
Export no longer working with v30