csv export
#1
I managed to do exports now, I also was able to add some fields to the csv export template like director or county, but so far I did not manage to add successfully actors or audio languages or codecs to the csv export. What would I have to do to be able to add these ?
What would be also interesting: is there a way to export all the poster art into one folder, files named something like movie_name-poster.jpg ?
#2
well, export functionality is not well tested (and even worse documented) Tongue
It seems, at least the mediaFiles do currently not work (this object is for each physical file, which inreturn has audio language and codecs)
Guess we'll get this fixed for next release.

Actors should work - they're also a 1:N list
See here a short XML listing
Code:
<movies>
${foreach movies movie}
    <movie>
        <title>${movie.title}</title>
        <year>${movie.year}</year>
        <added>${movie.dateAdded;date(yyyy-MM-dd)}</added>
        <genres>${foreach movie.genres genre}
            <genre>${genre}</genre>${end}
        </genres>
        <actors>${foreach movie.actors actor}
            <actor>
                <name>${actor.name}</name>
                <character>${actor.character}</character>
            </actor>${end}
        </actors>
    </movie>
${end}

or to get them all in a single field, comma separated:
Code:
<actors>${foreach movie.actors actor , }${actor.name}${end}</actors>
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#3
That is really a pity, I managed to export all the fields I need except the videocodec, resolution and audio languages. Any idea when this will be fixed ?
Interestingly, the SimpleConfluence template can do this kind of export.
#4
works fine here:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<movies>${foreach movies movie}
    <movie>
        <title>${movie.title}</title>
        <year>${movie.year}</year>
        <added>${movie.dateAdded;date(yyyy-MM-dd)}</added>
        <files>${foreach movie.mediaFiles file} ${if file.type="VIDEO"}
            <file>
                <name>${file.filename}</name>
                <vcodec>${file.videoCodec}</vcodec>
                <vresolution>${file.videoWidth} x ${file.videoHeight}</vresolution>
            </file>${end}${end}
        </files>
    </movie>${end}
</movies>

transformed to
Code:
<?xml version="1.0" encoding="UTF-8"?>
<movies>
    <movie>
        <title>101 Dalmatiner</title>
        <year>1961</year>
        <added>2015-04-17</added>
        <files>
            <file>
                <name>Dalmatiner.1.1961.avi</name>
                <vcodec>DivX</vcodec>
                <vresolution>576 x 432</vresolution>
            </file>                                                                                                                                                                                                     
        </files>
    </movie>
</movies>
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

Logout Mark Read Team Forum Stats Members Help
csv export0