Metadata agents for exported XBMC library

@hedena6310_entrastd_com
If you feel up to hacking the code you could replace the code from if athumbloc == ‘global’: to just before if aimagepath: with the following, replacing ‘full_path_to_actors_images_directory’ with the correct path in the style for your OS.

                                    if athumbloc == 'global':
                                        localpath = 'full_path_to_actors_images_directory' + aimagefilename
                                        aimagepath = athumbpath + aimagefilename
                                        if not os.path.isfile(localpath):
                                            log.debug ('failed setting ' + athumbloc + ' actor photo: ' + aimagepath)
                                            aimagepath = None

This would give you in effect a local global.

Someone better than me could edit the whole thing to give a fourth option in addition to the current local, global, link. If they do then I would rename global to single remote, local to inline local and name the new one single local.

@josiah
I never got into using the multiple ratings option so cannot help with that. I did suggest a number of years ago that the single rating option could be made to display an image with a small change.

The hack is quite small if you want to do it. Look for the section like this

                if preferences['preserverating']:
                    log.debug('Putting .nfo rating in front of summary!')
                    if not nfo_rating:
                        nfo_rating = 0.0
                    metadata.summary = unescape(str(preferences['beforerating'])) + '{:.1f}'.format(nfo_rating) + unescape(str(preferences['afterrating'])) + metadata.summary
                    metadata.rating = nfo_rating
                else:
                    metadata.rating = nfo_rating

Then replace each of the

                metadata.rating = nfo_rating

with

                metadata.rating = nfo_rating
                metadata.audience_rating = 0.0
                metadata.rating_image = 'imdb://image.rating'
                metadata.audience_rating_image = None

If you don’t use imdb ratings then you would need to read through the plex agent code to find the correct value to give metadata.rating_image for your preferred rating source.

@maiade hi, thanks for the code, could not get the local path to work, it was still using only links, checked with an image of an actor that had no link, maybe I am getting my path wrong, but too tired to check it now (tried with / and ). But I think I can show you how to make an additional option, I think it worked last time when I just duplicated existing one:
In DefaultPrefs.json add additional text: http://prntscr.com/tvd7zd
And in init.py add this: http://prntscr.com/tvdcr9
Result: http://prntscr.com/tvdfdi
Would be funny if I messed something up with a new option and this is why it is not working… Though I really went with the port forward thing lately, seems like the best solution to me, but could not figure which ports to keep open yet. Busy week, could not use much time to test, and had like 20 minutes to test your part out. Anyway thanks, for now I think I will keep trying to find the port to open when I have time.

edit: Well, I solved it in the simplest way possible.
Just added following to my hosts file on server: 127.0.0.1 websitename.net
Also made sure only DMZ worked, adding all port range manually would not solve the issue. I think, by making it an universal setting for myself I forced the traffic too much to the outside when it was not needed at the moment… the line in hosts allows me still have ‘global’ settings but use all traffic locally anyway. Looks like I made a bit of a fool of myself there, anyway, thanks for your help!

@hedena6310_entrastd_com
Glad you managed to get it all sorted in the end.

hey, thanks. I have it working on my movies, but my anime movies uses myanimelist for their ratings, is there a way to add a custom img?

@josiah

I cannot think of a way of adding custom images. I don’t think that the rating images are image files so you couldn’t even replace one of the existing ratings options that you don’t use with your own image. For example looking at a page via a browser the imdb image appears due to the following code background-image: url(data:image/svg+xml;base64,[long string of data snipped]);

also, for adding large libraries (1800 movies), it tends to hang and crash

Has anyone had any success using the agent for multiple languages? I have been having trouble and documented it in another post but wasn’t sure if it was related to the agent, scanner or something else.

Hi, I’m trying to have Plex to import my manually-created collections’ metadata into the server… is this something this plug-in is supposed to be able to do?

I rename and manually create movie sets (collections) with TinyMediaManager: trilogies or movie sets with different versions of the same movie, i.e. I tried scrapping my collection in Plex with this plug-in in several ways but I’m being unable to have my collections imported from tMM into Plex.

Anyone here that uses tMM and this plug-in that could share his/her tMM/Plex-agent config so I can see what I’m doing wrong please?

Thanks so much in advance for your kind help.

Could you post the NFO for one of the movies your having a problem with…

1 Like
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--created on 2020-11-23 18:38:32 - tinyMediaManager 3.1.10-->
<movie>
  <title>Amadeus</title>
  <originaltitle>Amadeus</originaltitle>
  <sorttitle/>
  <epbookmark/>
  <year>1984</year>
  <rating>8.3</rating>
  <userrating>0.0</userrating>
  <votes>355449</votes>
  <top250>86</top250>
  <set>Amadeus (versiones)</set>
  <plot>The life, success and troubles of Wolfgang Amadeus Mozart, as told by Antonio Salieri, the contemporaneous composer who was insanely jealous of Mozart's talent and claimed to have murdered him.</plot>
  <outline>The life, success and troubles of Wolfgang Amadeus Mozart, as told by Antonio Salieri, the contemporaneous composer who was insanely jealous of Mozart's talent and claimed to have murdered him.</outline>
  <tagline>The man... The music... The madness... The murder... The motion picture...</tagline>
  <runtime>160</runtime>
  <thumb>https://assets.fanart.tv/fanart/movies/279/movieposter/amadeus-5225927ed1813.jpg</thumb>
  <fanart>https://assets.fanart.tv/fanart/movies/279/moviebackground/amadeus-4fec1af9f2917.jpg</fanart>
  <mpaa/>
  <certification/>
  <id>tt0086879</id>
  <tmdbid/>
  <tmdbCollectionId/>
  <uniqueid default="true" type="imdb">tt0086879</uniqueid>
  <country>Estados Unidos</country>
  <country>Francia</country>
  <country>Czechoslovakia</country>
  <country>Italia</country>
  <status/>
  <code/>
  <premiered>1985-03-01</premiered>
  <watched>false</watched>
  <playcount/>
  <lastplayed/>
  <genre>Biography</genre>
  <genre>Drama</genre>
  <genre>History</genre>
  <genre>Music</genre>
  <studio>AMLF</studio>
  <studio>The Saul Zaentz Company</studio>
  <credits>Peter Shaffer</credits>
  <credits>Zdenek Mahler</credits>
  <director>Milos Forman</director>
  <actor>
    <name>F. Murray Abraham</name>
    <role>Antonio Salieri</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BNDQ2MzQ2ODYxM15BMl5BanBnXkFtZTcwODY3NTIxNw@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0000719/</profile>
  </actor>
  <actor>
    <name>Tom Hulce</name>
    <role>Wolfgang Amadeus Mozart</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTM0ODY0MTE0NF5BMl5BanBnXkFtZTcwOTQwNTIzOA@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0001371/</profile>
  </actor>
  <actor>
    <name>Elizabeth Berridge</name>
    <role>Constanze Mozart</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTU2MDg1OTg3Nl5BMl5BanBnXkFtZTcwOTgxMTg5Nw@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0000931/</profile>
  </actor>
  <actor>
    <name>Roy Dotrice</name>
    <role>Leopold Mozart</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTEzMTk0NjE4MDdeQTJeQWpwZ15BbWU3MDAwNTU0MDg@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0234541/</profile>
  </actor>
  <actor>
    <name>Simon Callow</name>
    <role>Emanuel Schikaneder</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMjI4OTc3MDkwNl5BMl5BanBnXkFtZTcwMTQ4MTg5Nw@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0001003/</profile>
  </actor>
  <actor>
    <name>Christine Ebersole</name>
    <role>Katerina Cavalieri</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMjQ4NTk3MTM4NF5BMl5BanBnXkFtZTYwMjkxNDIz._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0002056/</profile>
  </actor>
  <actor>
    <name>Jeffrey Jones</name>
    <role>Emperor Joseph II</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTQyNjYzMzAyNV5BMl5BanBnXkFtZTYwNzM5MjA0._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0000470/</profile>
  </actor>
  <actor>
    <name>Charles Kay</name>
    <role>Count Orsini-Rosenberg</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTkwNjgwNTIwNV5BMl5BanBnXkFtZTgwMjg2NDU5MjE@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0443016/</profile>
  </actor>
  <actor>
    <name>Kenneth McMillan</name>
    <role>Michael Schlumberg</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMjMxODU5MzA2M15BMl5BanBnXkFtZTcwNDE3MTMxOA@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0573299/</profile>
  </actor>
  <actor>
    <name>Kenny Baker</name>
    <role>Parody Commendatore</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTg1OTA3MzU0NV5BMl5BanBnXkFtZTcwNjY2Njk4Nw@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0048652/</profile>
  </actor>
  <actor>
    <name>Lisbeth Bartlett</name>
    <role>Papagena</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0058853/</profile>
  </actor>
  <actor>
    <name>Barbara Bryne</name>
    <role>Frau Weber</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0117408/</profile>
  </actor>
  <actor>
    <name>Martin Cavina</name>
    <role>Young Salieri</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0147168/</profile>
  </actor>
  <actor>
    <name>Roderick Cook</name>
    <role>Count Von Strack</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0177260/</profile>
  </actor>
  <actor>
    <name>Milan Demjanenko</name>
    <role>Karl Mozart</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0218562/</profile>
  </actor>
  <actor>
    <name>Peter DiGesu</name>
    <role>Francesco Salieri</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0226495/</profile>
  </actor>
  <actor>
    <name>Richard Frank</name>
    <role>Father Vogler</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0291068/</profile>
  </actor>
  <actor>
    <name>Patrick Hines</name>
    <role>Kappelmeister Bonno</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0385701/</profile>
  </actor>
  <actor>
    <name>Nicholas Kepros</name>
    <role>Archbishop Colloredo</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0449162/</profile>
  </actor>
  <actor>
    <name>Philip Lenkowsky</name>
    <role>Salieri's Servant</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BNzkyZDYwZWYtOTk0Zi00ZGZkLWE0Y2YtNWNhM2Y2OGY0MGQzXkEyXkFqcGdeQXVyMTQyNDUxNDU@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0501951/</profile>
  </actor>
  <actor>
    <name>Herman Meckler</name>
    <role>Priest</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0575359/</profile>
  </actor>
  <actor>
    <name>Jonathan Moore</name>
    <role>Baron Van Swieten</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0601409/</profile>
  </actor>
  <actor>
    <name>Cynthia Nixon</name>
    <role>Lorl</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMjIxNzgxMDU4OV5BMl5BanBnXkFtZTcwOTM3MTU5MQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0633223/</profile>
  </actor>
  <actor>
    <name>Brian Pettifer</name>
    <role>Hospital Attendant</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BNDg3NDA0ODU5OV5BMl5BanBnXkFtZTgwNjI3OTk0MDI@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0678648/</profile>
  </actor>
  <actor>
    <name>Vincent Schiavelli</name>
    <role>Salieri's Valet</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTc5MzA5OTY2M15BMl5BanBnXkFtZTYwODMwMjk1._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0001704/</profile>
  </actor>
  <actor>
    <name>Douglas Seale</name>
    <role>Count Arco</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTYxNDMyMTQ1N15BMl5BanBnXkFtZTcwNzM0MzkxOA@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0780528/</profile>
  </actor>
  <actor>
    <name>Miroslav Sekera</name>
    <role>Young Mozart</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0782809/</profile>
  </actor>
  <actor>
    <name>Cassie Stuart</name>
    <role>Gertrude Schlumberg</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTkyZGRiMTEtODVmZi00MThmLTk4ZTItNWJiMjhlMGFmZGFkXkEyXkFqcGdeQXVyMzE3OTU5Mg@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0835662/</profile>
  </actor>
  <actor>
    <name>John Strauss</name>
    <role>Conductor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0833824/</profile>
  </actor>
  <actor>
    <name>Karl-Heinz Teuber</name>
    <role>Wig Salesman</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0856604/</profile>
  </actor>
  <actor>
    <name>Rita Zohar</name>
    <role>Frau Schlumberg</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BYTlkMTJlYjQtM2JmNy00MDg3LWJhZWItNDdhZjAzOGUwMWIxXkEyXkFqcGdeQXVyODQ3NDU0NTk@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0957611/</profile>
  </actor>
  <actor>
    <name>Miro Grisa</name>
    <role>Figaro in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1499231/</profile>
  </actor>
  <actor>
    <name>Helena Cihelnikova</name>
    <role>Countess in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0162249/</profile>
  </actor>
  <actor>
    <name>Karel Gult</name>
    <role>Count Almaviva in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0347866/</profile>
  </actor>
  <actor>
    <name>Zuzana Kadlecova</name>
    <role>Susanna in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1499501/</profile>
  </actor>
  <actor>
    <name>Magda Celakovska</name>
    <role>Cherubino in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0147922/</profile>
  </actor>
  <actor>
    <name>Slavena Drasilova</name>
    <role>Barbarina in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1498945/</profile>
  </actor>
  <actor>
    <name>Eva Senková</name>
    <role>Marcellina in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0784373/</profile>
  </actor>
  <actor>
    <name>Leos Kratochvil</name>
    <role>Basilio in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1499616/</profile>
  </actor>
  <actor>
    <name>Gino Zeman</name>
    <role>Don Curzio in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1500942/</profile>
  </actor>
  <actor>
    <name>Janoslav Mikulín</name>
    <role>Dr. Bartolo in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1499950/</profile>
  </actor>
  <actor>
    <name>Ladislav Krecmer</name>
    <role>Antonio in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0470565/</profile>
  </actor>
  <actor>
    <name>Karel Fiala</name>
    <role>Don Giovanni in 'Don Giovanni'</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTJjNTY5MWEtMzZmNC00ZDhmLTk2ODQtNTkyNDUxYzhhZTAwXkEyXkFqcGdeQXVyMjIxMzMyMQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0275570/</profile>
  </actor>
  <actor>
    <name>Jan Blazek</name>
    <role>Commendatore in 'Don Giovanni'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1507608/</profile>
  </actor>
  <actor>
    <name>Zdenek Jelen</name>
    <role>Leporello in 'Don Giovanni'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1499463/</profile>
  </actor>
  <actor>
    <name>Milada Cechalova</name>
    <role>Queen of the Night in 'The Magic Flute'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1498728/</profile>
  </actor>
  <actor>
    <name>John Carrafa</name>
    <role>Dancer</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMTQxNjU3NDAzN15BMl5BanBnXkFtZTgwOTU0MTM4MDE@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0139948/</profile>
  </actor>
  <actor>
    <name>Sara Clifford</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0166682/</profile>
  </actor>
  <actor>
    <name>Richard Colton</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0173313/</profile>
  </actor>
  <actor>
    <name>Shelley Freydont</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1499113/</profile>
  </actor>
  <actor>
    <name>Anne Glasner</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1502726/</profile>
  </actor>
  <actor>
    <name>Barbara Hoom</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1502767/</profile>
  </actor>
  <actor>
    <name>Mary Kellogg</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0446125/</profile>
  </actor>
  <actor>
    <name>Raymond Kurshals</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0475955/</profile>
  </actor>
  <actor>
    <name>John Malashock</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1499827/</profile>
  </actor>
  <actor>
    <name>Jennifer Rawe</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1502926/</profile>
  </actor>
  <actor>
    <name>Tom Rawe</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0712558/</profile>
  </actor>
  <actor>
    <name>William Whitener</name>
    <role>Dancer</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1500859/</profile>
  </actor>
  <actor>
    <name>Hana Brejchová</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMjE2NTg3Mzg4MV5BMl5BanBnXkFtZTcwMDcxNjc5Ng@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0107011/</profile>
  </actor>
  <actor>
    <name>Miriam Chytilová</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0161614/</profile>
  </actor>
  <actor>
    <name>Karel Effa</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BY2YzNjk1NTktYjlhZC00OTlmLWE1NmEtZDlhYTA1ODhiZDYyXkEyXkFqcGdeQXVyMjIxMzMyMQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0250551/</profile>
  </actor>
  <actor>
    <name>Radka Fiedlerová</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0275857/</profile>
  </actor>
  <actor>
    <name>Rene Gabzdyl</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0300433/</profile>
  </actor>
  <actor>
    <name>Karel Hábl</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BZGI5MTBjYTMtNTljMi00NTk1LTlhNGYtYmI0ZjU4MDY4ZDZiXkEyXkFqcGdeQXVyMjIxMzMyMQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0405400/</profile>
  </actor>
  <actor>
    <name>Atka Janousková</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0429614/</profile>
  </actor>
  <actor>
    <name>Marta Jarolimkova</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1505449/</profile>
  </actor>
  <actor>
    <name>Gabriela Krckova</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1508761/</profile>
  </actor>
  <actor>
    <name>Vladimir Krousky</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1508011/</profile>
  </actor>
  <actor>
    <name>Jirí Krytinár</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BZjg3ZjI5OTctNjY1YS00ZDQzLTgzMGUtYTRlMWM0NGFhYjY3XkEyXkFqcGdeQXVyMjIxMzMyMQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0473038/</profile>
  </actor>
  <actor>
    <name>Radka Kucharova</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1504897/</profile>
  </actor>
  <actor>
    <name>Jan Kuzelka</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0476737/</profile>
  </actor>
  <actor>
    <name>Jirí Lír</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BNDg3YjAxNzAtZmI4Yi00OWU5LTg4MTctZDhkMmI3MThkM2RkXkEyXkFqcGdeQXVyMjIxMzMyMQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0529756/</profile>
  </actor>
  <actor>
    <name>Lenka Loubalová</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0997398/</profile>
  </actor>
  <actor>
    <name>Dagmar Maskova</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0556468/</profile>
  </actor>
  <actor>
    <name>Ladislav Mikes</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1508117/</profile>
  </actor>
  <actor>
    <name>Jitka Molavcová</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BODJjOTIxYjAtM2U0My00MDhhLWFiMzEtOTM2OGM5MzBmMzM0XkEyXkFqcGdeQXVyMjIxMzMyMQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0596440/</profile>
  </actor>
  <actor>
    <name>Jana Musilová</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1508876/</profile>
  </actor>
  <actor>
    <name>Vojtech Nalezenec</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1504983/</profile>
  </actor>
  <actor>
    <name>Pavel Nový</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BOTc4ZDU1ZmItNTc4MC00ZmVhLWEwMDQtM2IwNmI5YzMyMTY2XkEyXkFqcGdeQXVyMjIxMzMyMQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0637288/</profile>
  </actor>
  <actor>
    <name>Jiri Opsatko</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1508173/</profile>
  </actor>
  <actor>
    <name>Jan Pohan</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BM2ExNTU3YTQtMWU2YS00YTY1LTk4YzgtMzBjZDk5YzVhNzVhXkEyXkFqcGdeQXVyMjIxMzMyMQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0688296/</profile>
  </actor>
  <actor>
    <name>Therese Herz</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BZWQ0NTg3ODMtNDU3NS00NzhjLWFlYTMtNzJiN2M3M2I1YmExXkEyXkFqcGdeQXVyNjUxNDEwOTk@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0381236/</profile>
  </actor>
  <actor>
    <name>Ivan Pokorný</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BYjZjZmE2MjItMDRiOC00NjkzLWFkOWMtYmJjZmNjMjFkZmZiXkEyXkFqcGdeQXVyMjIxMzMyMQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0688697/</profile>
  </actor>
  <actor>
    <name>Milan Riehs</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0726226/</profile>
  </actor>
  <actor>
    <name>Iva Sebkova</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1507044/</profile>
  </actor>
  <actor>
    <name>Zdenek Sklenar</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1505107/</profile>
  </actor>
  <actor>
    <name>Renata Vackova</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1505172/</profile>
  </actor>
  <actor>
    <name>Jiri Vancura</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1505180/</profile>
  </actor>
  <actor>
    <name>Dana Vávrová</name>
    <role>Czechoslovakian Actor</role>
    <thumb>https://m.media-amazon.com/images/M/MV5BMjk3Mjk4Y2MtMzYxNy00YmI0LTllMDItYWVhNmYwY2Q1YWI0XkEyXkFqcGdeQXVyMjIxMzMyMQ@@._UY632.jpg</thumb>
    <profile>http://www.imdb.com/name/nm0904710/</profile>
  </actor>
  <actor>
    <name>Petra Vogelova</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1509069/</profile>
  </actor>
  <actor>
    <name>Josef Zeman</name>
    <role>Czechoslovakian Actor</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0954721/</profile>
  </actor>
  <actor>
    <name>June Anderson</name>
    <role>Queen of the Night in 'The Magic Flute'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0026984/</profile>
  </actor>
  <actor>
    <name>Isobel Buchanan</name>
    <role>Susanna in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0118012/</profile>
  </actor>
  <actor>
    <name>Michele Esposito</name>
    <role>Salieri's Student</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0261190/</profile>
  </actor>
  <actor>
    <name>Gillian Fisher</name>
    <role>Papagena in 'The Magic Flute'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm5831539/</profile>
  </actor>
  <actor>
    <name>Anne Howells</name>
    <role>Cherubino in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0398084/</profile>
  </actor>
  <actor>
    <name>Brian Kay</name>
    <role>Papageno in 'The Magic Flute'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm3113470/</profile>
  </actor>
  <actor>
    <name>Robin Leggate</name>
    <role>Don Curzio in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0499314/</profile>
  </actor>
  <actor>
    <name>Felicity Lott</name>
    <role>Countess in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0521502/</profile>
  </actor>
  <actor>
    <name>Zdenek Mahler</name>
    <role>Cardinal</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0537004/</profile>
  </actor>
  <actor>
    <name>Suzanne Murphy</name>
    <role>Cavalieri in 'Axur' / Constanza in 'Abduction from the Seraglio'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm3026747/</profile>
  </actor>
  <actor>
    <name>Alexander Oliver</name>
    <role>Basilio in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0646757/</profile>
  </actor>
  <actor>
    <name>Patricia Payne</name>
    <role>Marcellina in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm5831538/</profile>
  </actor>
  <actor>
    <name>Samuel Ramey</name>
    <role>Figaro in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0708211/</profile>
  </actor>
  <actor>
    <name>Deborah Rees</name>
    <role>Barbarina in 'The Marriage of Figaro'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm1502929/</profile>
  </actor>
  <actor>
    <name>Richard Stilwell</name>
    <role>Count Almaviva in 'The Marriage of Figaro' / Don Giovanni in 'Don Giovanni'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0830342/</profile>
  </actor>
  <actor>
    <name>Vladimír Svitácek</name>
    <role>Pope Clement</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0841323/</profile>
  </actor>
  <actor>
    <name>John Tomlinson</name>
    <role>Dr. Bartolo in 'The Marriage of Figaro' / Commendatore in 'Don Giovanni'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0866849/</profile>
  </actor>
  <actor>
    <name>Willard White</name>
    <role>Antonio in 'The Marriage of Figaro' / Leporello in 'Don Giovanni'</role>
    <thumb/>
    <profile>http://www.imdb.com/name/nm0925591/</profile>
  </actor>
  <producer>
    <name>Michael Hausman</name>
    <role/>
    <thumb/>
  </producer>
  <producer>
    <name>Bertil Ohlsson</name>
    <role/>
    <thumb/>
  </producer>
  <producer>
    <name>Saul Zaentz</name>
    <role/>
    <thumb/>
  </producer>
  <trailer>plugin://plugin.video.youtube/?action=play_video&amp;videoid=0F8_qdd8iho&amp;hd=1</trailer>
  <languages>en, it, la, de</languages>
  <dateadded>2020-05-10 23:20:06</dateadded>
  <fileinfo>
    <streamdetails>
      <video>
        <codec>h264</codec>
        <aspect>2.4</aspect>
        <width>1920</width>
        <height>800</height>
        <durationinseconds>10825</durationinseconds>
        <stereomode/>
      </video>
      <audio>
        <codec>AC3</codec>
        <language>spa</language>
        <channels>2</channels>
      </audio>
      <audio>
        <codec>AC3</codec>
        <language>eng</language>
        <channels>6</channels>
      </audio>
      <subtitle>
        <language>spa</language>
      </subtitle>
      <subtitle>
        <language>eng</language>
      </subtitle>
    </streamdetails>
  </fileinfo>
  <!--tinyMediaManager meta data-->
  <source>UNKNOWN</source>
  <edition>DIRECTORS_CUT</edition>
  <original_filename>Amadeus - Director's Cut (1984).mkv</original_filename>
  <user_note/>
</movie>

If I remember correctly…
Plex doesn’t use the same tags fields for collections.
If you add the collection name to the tags on TMM details 2 page/
You can add more then one tag.

1 Like

I think I’m following you… I manually added a line in the NFO with the name of the desired collection:
<tag>Amadeus (versiones)</tag>
Same result anyway: Plex won’t create any collection from it. It just shows the 2 versions of the same movie (I previously edited the name of each one in tMM so I can distinguish) as separate movies.

Funny thing is, if I scan the same folder using the “Plex movie” agent, Plex creates collections from my sagas and puts together different versions of the same movie (director’s cut or theatrical cut, i.e.) as if they were different qualities for the same movie.

You can manually create collections in Plex…

I assume this is something that could be achieved with this plug-in (importing collections from tMM created NFOs into Plex): Load collections tags from file (nfo) next to movie file

That’s why I’m asking if someone using this plug-in along with tMM could share how do they do it (options marked in tMM and XBMCnfoMoviesImporter agent). Maybe there’s something I’m missing here…

@samuyeah Your original nfo using <set> is the correct form for providing collection info. The agent supports both the old <set>Collection</set> style and the more recent

<set>
   <name></name>
   <overview></overview>
</set>

Unfortunately I don’t think anyone has worked out a way to load either the overview or a set poster yet.

I don’t use Tiny I prefer Ember Media Manager, but the nfo you have loaded looks like it should work. There is a library setting which controls whether collections are displayed or not. You can find it via Manage Library -> Edit -> Advanced. Just under DELETE PREVIEW THUMBNAILS should be collections, make sure this is not set to disabled.

If this isn’t the problem then unfortunately I am at a loss to understand why it will not work as there are no configuration options for the agent related to collections and your nfo looks valid.

Regarding multiple versions of the same film. Plex does not deal with this very well in my opinion. The problem to a great extent is that imdb treats them all as the same film and therefore so does Plex. There is a work around for this but it requires extra work. A good description of the solution can be found here https://forums.plex.tv/t/how-do-you-deal-with-multiple-versions-of-movies-specific-scenario/172051.

I would use Plex Movie for the primary version of the film and nfo for the special edition. You can get Plex Movie to use the nfo by putting the nfo client at the top of the Plex Movie agent configuration. The problem is if you have more versions of the film than you have agents then you run out of ways to separate the films. Well you could but you would have to clone the nfo agent so that you have multiple copies of it.

If you rely on the Plex method, which basically treats the different versions as the same then you cannot tell which versions you have watched and if you pause part way through then you have to be careful you pick the version you were watching as I am not sure you will get the same one if you simply use continue.

1 Like

Thanks so much for your reply maiade. So I confirm from your comments that tMM manually-created collections should be imported using this plug-in. That’s a good start. From there, I’ll continue testing to find out what is happenning…

I’ll review the thread and the options you just explained. I appreaciate your help.

The only way I could get collections into Plex from TMM was to use the TAGs as I described above. TMM V3 don’t know about the newer version.
And since they stopped updating V3 I’m looking for something else…

@samuyeah @nydave69

Just had a look at the code on github and my own server and realised that I am running a version that is now over two years old (1.1-114-g094312c-220) to be precise. (The version I have does what I need, so on the basis of if it’s not broke don’t fix it I haven’t updated). One of the things that has changed is around the handling of sets. Both the version that I use and the current one support both versions of <set> and the use of <tag> . The handling of set has been significantly changed to handle multiple sets. At some point the use of tag was made optional so there is now a preference that has to be turned on to make use of it. Even if you turn on the use of tag set should still be processed.

Unfortunately all this means is that just because it works for me it doesn’t mean that if you are using the latest version that it will work for you. All I can suggest is that if you haven’t already done so that you turn on debug logging and look for the log entries for set and tag. That will at least tell you whether the agent can find the appropriate elements.

Have you had issues with Plex loading the NFOs for movies. TV seems to work correctly.
It takes Plex 5 minutes to load one movie, doesn’t matter if I tell it to scan the library or kick off the scanner manually for just that movie. This has been going on since they added that new scanner. I tested it in beta and this was not an issue then.