Posts: 3,027
Joined: Oct 2012
Reputation:
189
a movie can contain many media files (basically all files which can be assigned to a movie).
I think what you want to achieve is to get the "main" video file.
if you are on v3, you can directly access that: {movie.mainVideoFile}; on v2 you can get the first video file (basically the same as the main video file from v3 in 99% of all cases): {movie.firstVideoFile}
with that you can access all data from MediaFiles
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
Posts: 157
Joined: May 2019
Reputation:
6
jhoyos
Senior Member
Posts: 157
Thanks for your response, but I don't know how to get the information I am looking for with your answer.
Could you tell what code lines do I have to write bellow my code?
Posts: 157
Joined: May 2019
Reputation:
6
jhoyos
Senior Member
Posts: 157
2019-05-29, 09:09
(This post was last modified: 2019-05-29, 09:11 by jhoyos.)
Hi, finally from you tip "{movie.mainVideoFile}" I was able to extract MediaFile information.
Just for the record, in case anyone else have the same problem, I solved with this line bellow my old code:
<Cell><Data ss:Type="String">${movie.mainVideoFile.filename}</Data></Cell>
<Cell><Data ss:Type="String">${movie.mainVideoFile.extension}</Data></Cell>
<Cell><Data ss:Type="String">${movie.mainVideoFile.durationHM}</Data></Cell>
Now... If I want to add besides, just the name of all actors in the movie, how do I have to do it?
If I write this I have a bunch of data that I dont want, as character, name, role and thumburl.
<Cell><Data ss:Type="String">${movie.actors}</Data></Cell>
How can I get JUST name of movie actors?
I tried this but It didn't work:
<Cell><Data ss:Type="String">${movie.actors.name}</Data></Cell>
Any tips?
Posts: 157
Joined: May 2019
Reputation:
6
jhoyos
Senior Member
Posts: 157
Thanks a lot! It worked perfect!
And the last thing...
Is there any way to put "header name" into the result?
Anything I can add to this line to have a header in the excel file that says "Title" above the results?
<Cell><Data ss:Type="String">${movie.title}</Data></Cell>
Posts: 157
Joined: May 2019
Reputation:
6
jhoyos
Senior Member
Posts: 157
Please.. .another question... I am trying to get a list of Audio Streams and their codec, as It does Plex Export Complement, that outputs this data:
Audio Stream CodecAudio Stream ChannelsAudio Stream Bitrateac3 - ac36 - 6448 - 448ac3 - ac36 - 6448 - 384dca - dca - ac36 - 8 - 21536 - 1536 - 192
I wrote this line below my code, as with the actors.
<Cell><Data ss:Type="String">${foreach video.audioStreams audio}${audio.codec}, ${end}</Data></Cell>
But nothing happened. It output the xml file, but it leaves the last column (audio codecs) in blank.
How should I write that line in order to have an output similar as exposed?
Thanks in advanced for all your help. I will write here the template once is finished in case it is useful for anyone else.
Posts: 157
Joined: May 2019
Reputation:
6
jhoyos
Senior Member
Posts: 157
Anything about Audio Channels? The information seems to be there, but I don't know why, TMM doesn't export it... (see image in previous post).
Thanks in advanced.
PS: I have solved about column titles. Once I resolve Audio Channels, I will put here the hole template.
Regards,
Posts: 3,027
Joined: Oct 2012
Reputation:
189
sorry, was busy releasing v3..
channels/channelsAsInt is internally deprecated and imho no more filled in v3; could you try audioChannels ? (will adopt the wiki here)
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
Posts: 3,027
Joined: Oct 2012
Reputation:
189
thanks.
Am I allowed to package this along with tmm?
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
Posts: 157
Joined: May 2019
Reputation:
6
jhoyos
Senior Member
Posts: 157
Hi mlaggner,
I guess you haven't had time to include this template per default in TMM v3.
Anycase, I was wondering, since I have become crazy about this, how would I be able to include poster url into this template so I can export it to Excel.
Would you be able to help me in this matter? It is the only thing I am missing and I have been trying with no success in it.
Regards,
PS: I would like to get the imagen url of the poster I have choosen when scrapping with TMM and appears in it.