Req Export NFO & CSV/XML
#1
Hello,

First, thanks for this nice program very useful Smile

It would be nice to include an export of the NFO file for one or several movies !

This would take the same process as the existing export (select one or more movies).

What do you think ?

Another thing about the CSV and XML export : would it be possible to have more columns/entries (release date, duration, genre, actors, IDIMDB, IDTMDB, summary, seen or not, URL poster, .. .) ?

Thanks for reading Wink

PS: sorry for my english, I'm french Wink
#2
For exporting existing NFOs we have to create anything new (this is not in the known export structure...);

But you can create/modify existing export templates as you wish.
Just copy one of the existing templates and modify it to suit your needs (https://code.google.com/p/tinymediamanag...tTemplates)

hth
Manuel
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
Ok, I didn't see the wiki to create a template ! Very interesting Smile

For export of NFOs, is expected in the future ?
#4
I'll put this to the ideas/ToDo list
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
#5
Ok, thanks !
#6
Another question about the CSV template export and JMTE.

I try to get the movie trailer.
In the movie array, there is :
Code:
Movie[
    ...

    trailer=[
    
        MediaTrailer
        [
            name=Bande Annonce Vo,
            url=http://www.youtube.com/watch?v=zLYKfBGvapA,
            quality=Standard,
            provider=youtube,
            inNfo=true,
            size=,
            date=
        ],

        ...
    ],

    ...
}

How can I access to the url of the trailer present in the NFO ?
I've tried this but it doesn't work :
Code:
${foreach movie.trailer trailer}${if trailer.MediaTrailer.inNfo = true}${trailer.MediaTrailer.url}${end}${end}

I have this error in log file :
Code:
ERROR [main] o.t.u.movies.dialogs.MovieExporterDialog:171 - Error exporting movies: Error while parsing 'foreach movie.trailer trailer' at location (2:599): Property 'trailer' on object Movie[...

And also this at the end of the log file :
Code:
can not be accessed: "java.lang.NoSuchFieldException: MediaTrailer"!

If I try this, there's no output file :
Code:
${movie.trailer}

Thanks.
#7
As far as I can see we have a little (internal) naming problem here:

please try $movie.trailers
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
#8
Thanks, it works with :
Code:
${foreach movie.trailers trailer}${if trailer.inNfo = true}${trailer.url}${end}${end}

Now, I want the ID of the movie. I do : ${movie.id} as marked in the wiki but I have this error in log file :
Code:
ERROR [main] o.t.u.movies.dialogs.MovieExporterDialog:171 - Error exporting movies: Error while parsing 'movie.id' at location (2:26): Property 'id' on object

But however there is an "id" entry in the movie object...
#9
yes, ID is a hashmap of all possible ids (imdb id, tmdb id, zelluloid id, ofdb id,...)

you might try the imdbid or tmdbid

and I might update the wiki Big Grin
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
#10
Ok !

I did a new export without having touched nothing in the tempate and movie ID is retrieved with ${movie.id} correctly...

Logout Mark Read Team Forum Stats Members Help
Export NFO & CSV/XML0