Metadata agents for exported XBMC library

Also I’m looking for a NFO creator that can pull the info for a move/series and create the NFO. I currently use TMM but they have chosen to stop updating V3 and gone to a paid license for the V4… I know that there was a Plex plugin that would do that but I haven’t heard much about it lately and I tried it back years ago, it just didn’t seem to do what I wanted at the time.

I am still on server version 4.34.3, and in any case I don’t use the Plex Movie agent I just use the XBMCnfoMoviesImporter. This performs well for me. I do know that some people prefer to use the Plex Movie agent with XBMCnfoMoviesImporter as an additional support they may be able to help you there.

I use Ember Media Manager currently using version 1.5.0. I changed a lot of the settings to make it more plex standard but if you use the XBMCnfoImporters then it is not really necessary. I prefer to use the plex local media agent for extras etc and turn off the local media support in the XBMCnfoImporters which is why changed the settings.

So far EMM is still being kept up to date though I don’t know what is going to happen once theTVDB introduces its new api rules.

I only use the XBMCnfoMoviesImporter…
The current version of PMS is Version 1.20.5.3600,
Version 4.34.3 looks like that’s the Web App version.

I’ll take a look at that…

I hope that Plex just drops theTVDB… It’s data that the users have added, Now they want us to pay for the data we own. And I find lots of errors in that data all the time, I just don’t correct it anymore. I have moved on…

Yes you are quite correct that is the web version. Server version is 1.19.5.3035.

Hi @maiade and @nydave69 Thanks for your replies. Sorry I didn’t have the time to test until today. So: after some troubleshooting, I found out that there’s a problem with my rclone mount (I was testing with some movies in my google drive) which is not updating cache properly. That’s why all of my tests were having same results. My fault, sorry for bothering you with that.

Now I see that XBMCnfoMoviesImporter is importing tMM collection sets BUT (as other people in this thread already explained) it is not importing artworks at all.

That’s bad because I’ll have to manually edit all collections anyway… This makes me wonder: if I manually edit all collections in Plex… is there any other plug-in that can export all metadata+artworks in case I migrate to any other server/client? (if I decide to import my collections in Kodi or Jellyfin in the future for example).

Sorry for all this annoying questions. In the end, I think it will be good to have the most standarised media naming&structure so it is exportable to any available system if our needs change.

Thanks again for your kind help. BR.

Hi @samuyeah Glad you are making progress. Have a look at Lambda this might do what you want re exports.

@maiade
I tried the following which worked :metadata.rating_image = 'imdb://image.rating’
Do you have any idea how I could implement this with my own images - like a smiley, meh and sad face?
Do you know what the dimensions for the image should be? what format i.e. jpg, png etc…
Can I store these images on my hard drive??
Thank you…

Unfortunately you cannot make up your own, it has to be one of the ones Plex has designed. I know they have imdb and rotten tomatoes not sure about any others.

That’s a shame - but thank you for taking the time to let me know and save me loads of time trawling through countless internet pages.

In relation to the plex plugin documentation, the version I have is
Plex Plug-in Framework Documentation Release 2.1.1

Do you happen to have a more up to date document or where I can lay my hands on one?

Do have a Happy New Year

Kind Regards

Hi,
I try to organize my media files. I would like to use .nfo files to do this. Fortunately, I found the project.
But I have one problem: the Plugin did’t work for me.
I’ve tried so much but it still doesn’t work.

My .nfo file looks like this:

<tvshow>
       <title>Test Title</title>
       <ratings>
           <rating name="default" max="10" default="true">
               <value>8.600000</value>
               <votes>88</votes>
           </rating>
       </ratings>
       <season>1</season>
       <episode>1</episode>
       <plot>TEST PLOT</plot>
       <tagline></tagline>
</tvshow>

And the Plugin Log file is this.

INFO (core:349) - Starting framework core - Version: 2.6.3, Build: 6c22540 (Thu Dec 17 19:56:53 UTC 2020)
DEBUG (core:361) - Using the elevated policy
DEBUG (core:450) - Starting runtime component.
DEBUG (core:450) - Starting caching component.
DEBUG (core:450) - Starting data component.
DEBUG (core:450) - Starting networking component.
DEBUG (networking:261) - Loaded HTTP cookies
DEBUG (networking:428) - Setting the default network timeout to 20.0
DEBUG (core:450) - Starting localization component.
INFO (localization:409) - Setting the default locale to en-us
DEBUG (core:450) - Starting messaging component.
DEBUG (core:450) - Starting debugging component.
DEBUG (core:450) - Starting services component.
DEBUG (core:450) - Starting myplex component.
DEBUG (core:450) - Starting notifications component.
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/system/messaging/clear_events/com.plexapp.agents.xbmcnfotv'
DEBUG (accessor:68) - Creating a new model access point for provider com.plexapp.agents.xbmcnfotv in namespace 'metadata'
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
DEBUG (services:265) - Plug-in is not daemonized - loading services from system
DEBUG (runtime:1117) - Created a thread named 'load_all_services'
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0J1bmRsZVNlcnZpY2U6QWxsU2VydmljZXM_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMApyMAo_'
DEBUG (runtime:1117) - Created a thread named 'get_server_info'
DEBUG (core:150) - Finished starting framework core
DEBUG (core:560) - Loading plug-in code
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400'
DEBUG (core:538) - Machine identifier is 1039e80f854cea28d0460728a86f0813ea3e4bab
DEBUG (core:539) - Server version is 1.21.1.3830-6c22540d5
DEBUG (core:566) - Finished loading plug-in code
DEBUG (agentkit:1132) - Creating new agent class called xbmcnfotv
DEBUG (agentkit:937) - Updating agent information: [{'media_types': ['TV_Show'], 'accepts_from': ['com.plexapp.agents.localmedia', 'com.plexapp.agents.opensubtitles', 'com.plexapp.agents.podnapisi', 'com.plexapp.agents.plexthememusic', 'com.plexapp.agents.subzero'], 'fallback_agent': None, 'contributes_to': ['com.plexapp.agents.thetvdb'], 'languages': ['xn'], 'persist_stored_files': False, 'version': 0, 'primary_provider': True, 'prefs': True, 'name': 'XBMCnfoTVImporter'}]
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/messaging/function/X0FnZW50U2VydmljZTpVcGRhdGVJbmZv/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQo3CmRpY3QKbGlzdApkaWN0Cmxpc3QKbGlzdApsaXN0Cmxpc3QKMgpzMjgKY29tLnBsZXhhcHAuYWdlbnRzLnhibWNuZm90dnMxMAppZGVudGlmaWVycjEKczEwCmFnZW50X2luZm8xCnIyCjEwCnIzCnMxMQptZWRpYV90eXBlc3I0CnMxMgphY2NlcHRzX2Zyb21uczE0CmZhbGxiYWNrX2FnZW50cjUKczE0CmNvbnRyaWJ1dGVzX3RvcjYKczkKbGFuZ3VhZ2VzYjBzMjAKcGVyc2lzdF9zdG9yZWRfZmlsZXNpMApzNwp2ZXJzaW9uYjFzMTYKcHJpbWFyeV9wcm92aWRlcmIxczUKcHJlZnNzMTcKWEJNQ25mb1RWSW1wb3J0ZXJzNApuYW1lMQpzNwpUVl9TaG93NQpzMjkKY29tLnBsZXhhcHAuYWdlbnRzLmxvY2FsbWVkaWFzMzIKY29tLnBsZXhhcHAuYWdlbnRzLm9wZW5zdWJ0aXRsZXNzMjgKY29tLnBsZXhhcHAuYWdlbnRzLnBvZG5hcGlzaXMzMwpjb20ucGxleGFwcC5hZ2VudHMucGxleHRoZW1lbXVzaWNzMjYKY29tLnBsZXhhcHAuYWdlbnRzLnN1Ynplcm8xCnMyNgpjb20ucGxleGFwcC5hZ2VudHMudGhldHZkYjEKczIKeG5yMAo_'
CRITICAL (sandbox:298) - Function named 'Start' couldn't be found in the current environment
INFO (core:611) - Started plug-in
DEBUG (socketinterface:160) - Starting socket server
DEBUG (runtime:1117) - Created a thread named 'start'
INFO (socketinterface:184) - Socket server started on port 36231
INFO (pipeinterface:25) - Entering run loop
DEBUG (runtime:717) - Handling request GET /:/prefixes
DEBUG (runtime:814) - Found route matching /:/prefixes
DEBUG (runtime:924) - Response: [200] MediaContainer, 153 bytes
DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.xbmcnfotv/prefs
DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.xbmcnfotv/prefs
DEBUG (services:362) - Loaded services
DEBUG (services:438) - No shared code to load
WARNING (data:179) - Error decoding with simplejson, using demjson instead (this will cause a performance hit) - Expecting value: line 21 column 5 (char 402)
DEBUG (preferences:258) - Loaded preferences from DefaultPrefs.json
DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.agents.xbmcnfotv
DEBUG (runtime:88) - Sending packed state data (109 bytes)
DEBUG (runtime:924) - Response: [200] MediaContainer, 3379 bytes
DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.xbmcnfotv/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTkKczE2CmZmYzA1ZDkwZjc1OWJhY2RzMTcKb3BlblN1YnRpdGxlc0hhc2hzMQoxczgKZXBpc29kaWNzMTAKTmF0dXJmaWxtZXM0CnNob3dzMTAKMjAyMC0yNC0xMnMxMQpyZWxlYXNlZF9hdHM0CjIwMjBzNgpzZWFzb25zMTU3CiUyRmRyaXZlJTJGdGVzdCUyRlRWJTIwU2hvd3MlMkZUViUyMFNob3dzJTJGTmF0dXJmaWxtZSUyRlNlYXNvbiUyMDIwMjAlMkZOYXR1cmZpbG1lJTIwJUUyJTgwJTkzJTIwMjQtMTItMjAyMCUyMCVFMiU4MCU5MyUyMEltJTIwUmVpY2glMjBkZXIlMjBXb2xnYSUyMDElMkVtcDRzOApmaWxlbmFtZXM0MApiYTAxZjI4MDZmYjFhMGVkMzUyNTcwZGYwYmI5YTVmMzFiZDdiNWFkczgKcGxleEhhc2hzMgotMXM4CmR1cmF0aW9uczQKNzQ3N3MyCmlkcjAK
DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.xbmcnfotv/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCnhuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M3ClRWX1Nob3dzMTAKbWVkaWFfdHlwZTkKczE2CmZmYzA1ZDkwZjc1OWJhY2RzMTcKb3BlblN1YnRpdGxlc0hhc2hzMQoxczgKZXBpc29kaWNzMTAKTmF0dXJmaWxtZXM0CnNob3dzMTAKMjAyMC0yNC0xMnMxMQpyZWxlYXNlZF9hdHM0CjIwMjBzNgpzZWFzb25zMTU3CiUyRmRyaXZlJTJGdGVzdCUyRlRWJTIwU2hvd3MlMkZUViUyMFNob3dzJTJGTmF0dXJmaWxtZSUyRlNlYXNvbiUyMDIwMjAlMkZOYXR1cmZpbG1lJTIwJUUyJTgwJTkzJTIwMjQtMTItMjAyMCUyMCVFMiU4MCU5MyUyMEltJTIwUmVpY2glMjBkZXIlMjBXb2xnYSUyMDElMkVtcDRzOApmaWxlbmFtZXM0MApiYTAxZjI4MDZmYjFhMGVkMzUyNTcwZGYwYmI5YTVmMzFiZDdiNWFkczgKcGxleEhhc2hzMgotMXM4CmR1cmF0aW9uczQKNzQ3N3MyCmlkcjAK
INFO (agentkit:961) - Searching for matches for {'openSubtitlesHash': 'ffc05d90f759bacd', 'episodic': '1', 'show': 'Naturfilme', 'released_at': '2020-24-12', 'season': '2020', 'filename': '%2Fdrive%2Ftest%2FTV%20Shows%2FTV%20Shows%2FNaturfilme%2FSeason%202020%2FNaturfilme%20%E2%80%93%2024-12-2020%20%E2%80%93%20Im%20Reich%20der%20Wolga%201%2Emp4', 'plexHash': 'ba01f2806fb1a0ed352570df0bb9a5f31bd7b5ad', 'duration': '-1', 'id': '7477'}
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/7477/tree'
INFO (__init__:36) - ++++++++++++++++++++++++
INFO (__init__:36) - Entering search function
INFO (__init__:36) - ++++++++++++++++++++++++
INFO (__init__:202) - XBMCnfoTVImporter Version: 1.1-93-gc3e9112-220
INFO (__init__:36) - Plex Server Version: 1.21.1.3830-6c22540d5
INFO (__init__:206) - Agents debug logging is enabled!
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/7477/tree'
INFO (__init__:36) - Path from XML: /drive/test/TV Shows/TV Shows/Naturfilme/Season 2020
INFO (__init__:36) - Looking for TV Show NFO file at /drive/test/TV Shows/TV Shows/Naturfilme/tvshow.nfo
INFO (__init__:36) - Looking for TV Show NFO file at /drive/test/TV Shows/TV Shows/Naturfilme/Season 2020/tvshow.nfo
INFO (__init__:36) - Looking for TV Show NFO file at /drive/test/TV Shows/TV Shows/tvshow.nfo
INFO (__init__:36) - Couldn't find a tvshow.nfo file; will try to guess from filename...:
INFO (__init__:36) - Using tvshow.title = Naturfilme
INFO (__init__:305) - scraped results: Naturfilme | year = 0 | id = 7477
DEBUG (runtime:88) - Sending packed state data (109 bytes)
DEBUG (runtime:924) - Response: [200] str, 628 bytes
DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.xbmcnfotv/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo3NDc3czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzNDMKY29tLnBsZXhhcHAuYWdlbnRzLnhibWNuZm90djovLzc0Nzc%40bGFuZz14bnM0Cmd1aWRzNAo3NDc3czIKaWRyMAo_
DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.xbmcnfotv/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKeG5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNAo3NDc3czQKZGJpZGkwCnM3CnZlcnNpb25uczEwCnBhcmVudEdVSURuczgKcGFyZW50SURzNwpUVl9TaG93czEwCm1lZGlhX3R5cGVzNDMKY29tLnBsZXhhcHAuYWdlbnRzLnhibWNuZm90djovLzc0Nzc@bGFuZz14bnM0Cmd1aWRzNAo3NDc3czIKaWRyMAo_
DEBUG (model:32) - Loading model with GUID com.plexapp.agents.xbmcnfotv://7477?lang=xn
ERROR (model:205) - Cannot read model from /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/f/85d400d4c6b3473c371c874e57f19d9d3d82186.bundle/Contents/com.plexapp.agents.xbmcnfotv
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/7477/tree'
INFO (__init__:36) - ++++++++++++++++++++++++
INFO (__init__:36) - Entering update function
INFO (__init__:36) - ++++++++++++++++++++++++
INFO (__init__:312) - XBMCnfoTVImporter Version: 1.1-93-gc3e9112-220
INFO (__init__:36) - Plex Server Version: 1.21.1.3830-6c22540d5
INFO (__init__:316) - Agents debug logging is enabled!
INFO (datakit:24) - Resetting the dictionary
INFO (datakit:118) - No default dictionary file
INFO (datakit:118) - No default dictionary file
INFO (__init__:385) - Update called for TV Show with id = 7477
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/7477/tree'
INFO (__init__:36) - Path from XML: /drive/test/TV Shows/TV Shows/Naturfilme/Season 2020
INFO (__init__:36) - Looking for TV Show NFO file at /drive/test/TV Shows/TV Shows/Naturfilme/tvshow.nfo
INFO (__init__:36) - Looking for TV Show NFO file at /drive/test/TV Shows/TV Shows/Naturfilme/Season 2020/tvshow.nfo
INFO (__init__:36) - Looking for TV Show NFO file at /drive/test/TV Shows/TV Shows/tvshow.nfo
INFO (__init__:36) - Couldn't find a tvshow.nfo file; will try to guess from filename...:
INFO (__init__:385) - Using tvshow.title = Naturfilme
INFO (__init__:36) - UpdateEpisodes called
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/7477/children'
INFO (__init__:36) - seasonID : /drive/test/TV Shows/TV Shows/Naturfilme
INFO (__init__:36) - Finding episodes
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/7478/children'
INFO (__init__:36) - Found 1 episodes.
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/7478/children'
INFO (__init__:745) - Looking for season assets for None season 2020.
INFO (__init__:159) - Found 0 valid things for structure season-?0?2020(-poster)?-?[0-9]?[0-9]? (ext: ['jpg', 'png', 'jpeg', 'tbn'])
INFO (__init__:159) - Found 0 valid things for structure season-?0?2020-banner-?[0-9]?[0-9]? (ext: ['jpg', 'png', 'jpeg', 'tbn'])
INFO (__init__:159) - Found 0 valid things for structure season-?0?2020-(fanart|art|background|backdrop)-?[0-9]?[0-9]? (ext: ['jpg', 'png', 'jpeg', 'tbn'])
INFO (__init__:36) - epKEY: /library/metadata/7479
INFO (__init__:36) - epNUM: Error!
INFO (__init__:36) - epNUM: 1
DEBUG (threadkit:234) - Starting a parallel task set named UpdateEpisodes with 1 tasks
INFO (__init__:36) - UpdateEpisode called for episode (<Framework.modelling.attributes.RecordObject object at 0x7f92e06cc750>, /library/metadata/7479) S2020E01
DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/library/metadata/7479/tree'
INFO (__init__:36) - UPDATE: /drive/test/TV Shows/TV Shows/Naturfilme/Season 2020/Naturfilme – 24-12-2020 – Im Reich der Wolga 1.mp4
INFO (__init__:36) - Looking for episode NFO file /drive/test/TV Shows/TV Shows/Naturfilme/Season 2020/Naturfilme – 24-12-2020 – Im Reich der Wolga 1.nfo
INFO (__init__:36) - File exists...
INFO (datakit:131) - Saved the dictionary file
INFO (__init__:36) - Removing empty XML tags from tvshows nfo...
INFO (__init__:1084) - ERROR: <episodedetails> tag not found in episode NFO file /drive/test/TV Shows/TV Shows/Naturfilme/Season 2020/Naturfilme – 24-12-2020 – Im Reich der Wolga 1.nfo
DEBUG (threadkit:244) - Parallel task set UpdateEpisodes ended
INFO (__init__:36) - Episode durations are: 
INFO (__init__:36) - Set Series Episode Runtime to median of all episodes: 0 (0 minutes)
INFO (datakit:24) - Resetting the dictionary
INFO (datakit:118) - No default dictionary file
DEBUG (model:229) - Serializing to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/f/85d400d4c6b3473c371c874e57f19d9d3d82186.bundle/Contents/com.plexapp.agents.xbmcnfotv/Info.xml
DEBUG (runtime:88) - Sending packed state data (109 bytes)
DEBUG (runtime:924) - Response: [200] str, 16 bytes

I have see the error “ERROR: tag not found in episode NFO file”,so I have searched in the forum and found this .nfo file:

<xml><br />
   <episodedetails><br />
       <title>Karlson vom Dach</title><br />
       <rating></rating><br />
       <season>1</season><br />
       <episode>1</episode><br />
       <plot>Der achtjŠhrige Lillebror (Lars Sšderdahl) freundet sich mit dem Sonderling Karlsson (Mats Wikstršm) an, der in einer HŸtte auf dem Dach lebt und mit Hilfe eines Propellers, den er auf dem RŸcken trŠgt, fliegen kann. Lillebror wohnt mit seinem Bruder Birger (Staffan Hallerstam) und seiner Schwester Betty (Britt Marie NŠsholm) bei den Eltern (Catrin Westerlund und Stig Ossien Ericson).<br />
Die vier halbstŸndigen Episoden wurden hierzulande zeitweise am StŸck als einzelner Spielfilm wiederholt.</plot><br />
       <credits>Astrid Lindgren</credits><br />
       <director>Olle Hellbom</director><br />
       <aired>1974</aired><br />
       <actor><br />
           <name>Stig Ossien Ericson</name><br />
           <role>Vater</role><br />
<br />
<name>Staffan Hallerstam</name><br />
<role>Birger</role><br />
<name>Britt Marie NŠsholm</name><br />
<role>Betty</role><br />
<name>Lars Sšderdahl</name><br />
<role>Lillebror</role><br />
<name>Catrin Westerlund</name><br />
<role>Mutter</role><br />
<name>Mats Wikstršm</name><br />
<role>Karlsson</role><br />
       </actor><br />
  </episodedetails><br />
 </xml>

But this file also doesn’t work.

Is the .nfo file still wrong? Can you send me a correct example?

Thanks :slightly_smiling_face:

here is a movie NFO…

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--created on 2020-11-26 12:16:13 - tinyMediaManager 3.1.10-->
<movie>
  <title>Holiday Inn</title>
  <originaltitle>Holiday Inn</originaltitle>
  <sorttitle/>
  <epbookmark/>
  <year>1942</year>
  <rating>7.2</rating>
  <userrating>0.0</userrating>
  <votes>116</votes>
  <top250>0</top250>
  <set/>
  <plot>Lovely Linda Mason has crooner Jim Hardy head over heels, but suave stepper Ted Hanover wants her for his new dance partner after femme fatale Lila Dixon gives him the brush. Jim's supper clubΓÇöHoliday InnΓÇöis the setting for the chase by Hanover and manager Danny Reed. The music's the thing.</plot>
  <outline>Lovely Linda Mason has crooner Jim Hardy head over heels, but suave stepper Ted Hanover wants her for his new dance partner after femme fatale Lila Dixon gives him the brush. Jim's supper clubΓÇöHoliday InnΓÇöis the setting for the chase by Hanover and manager Danny Reed. The music's the thing.</outline>
  <tagline/>
  <runtime>101</runtime>
  <thumb>http://image.tmdb.org/t/p/original/6HujErFoaOrL2bMWRdHHBevwH9f.jpg</thumb>
  <fanart>https://assets.fanart.tv/fanart/movies/13485/moviebackground/holiday-inn-555829bf43f43.jpg</fanart>
  <mpaa/>
  <certification/>
  <id>tt0034862</id>
  <tmdbid>13485</tmdbid>
  <tmdbCollectionId/>
  <uniqueid default="false" type="tmdb">13485</uniqueid>
  <uniqueid default="true" type="imdb">tt0034862</uniqueid>
  <country>United States</country>
  <status/>
  <code/>
  <premiered>1942-07-10</premiered>
  <watched>true</watched>
  <playcount>1</playcount>
  <lastplayed/>
  <genre>Comedy</genre>
  <genre>Drama</genre>
  <genre>Music</genre>
  <genre>Romance</genre>
  <studio>Paramount</studio>
  <credits>Irving Berlin</credits>
  <credits>Claude Binyon</credits>
  <credits>Elmer Rice</credits>
  <director>Mark Sandrich</director>
  <actor>
    <name>Bing Crosby</name>
    <role>Jim Hardy</role>
    <thumb>http://image.tmdb.org/t/p/h632/ydxPEeNPr0vaKZmEZXVNvhav3LB.jpg</thumb>
    <profile>https://www.themoviedb.org/person/24937</profile>
  </actor>
  <actor>
    <name>Fred Astaire</name>
    <role>Ted Hanover</role>
    <thumb>http://image.tmdb.org/t/p/h632/6gw9PCrKi19I5QOwjEPaOYW9uLI.jpg</thumb>
    <profile>https://www.themoviedb.org/person/30181</profile>
  </actor>
  <actor>
    <name>Marjorie Reynolds</name>
    <role>Linda Mason</role>
    <thumb>http://image.tmdb.org/t/p/h632/kwSKPhNoyqnn5zcqjk8Jq4elPH9.jpg</thumb>
    <profile>https://www.themoviedb.org/person/87545</profile>
  </actor>
  <actor>
    <name>Virginia Dale</name>
    <role>Lila Dixon</role>
    <thumb>http://image.tmdb.org/t/p/h632/4AGWHKbVrTEd95i3vhsPZfNlHhY.jpg</thumb>
    <profile>https://www.themoviedb.org/person/131001</profile>
  </actor>
  <actor>
    <name>Walter Abel</name>
    <role>Danny Reed</role>
    <thumb>http://image.tmdb.org/t/p/h632/cTKeEvBvfHZnpkTVDLNPgbjQE8L.jpg</thumb>
    <profile>https://www.themoviedb.org/person/77114</profile>
  </actor>
  <actor>
    <name>Louise Beavers</name>
    <role>Mamie</role>
    <thumb>http://image.tmdb.org/t/p/h632/paY7aYpB9erGe3KetPLZ3P0Yd39.jpg</thumb>
    <profile>https://www.themoviedb.org/person/89101</profile>
  </actor>
  <actor>
    <name>Irving Bacon</name>
    <role>Gus</role>
    <thumb>http://image.tmdb.org/t/p/h632/zgCDH4kRXESzKLOtqNu8Gk5KNxh.jpg</thumb>
    <profile>https://www.themoviedb.org/person/30530</profile>
  </actor>
  <actor>
    <name>Marek Windheim</name>
    <role>François</role>
    <thumb/>
    <profile>https://www.themoviedb.org/person/956444</profile>
  </actor>
  <actor>
    <name>James Bell</name>
    <role>Dunbar</role>
    <thumb>http://image.tmdb.org/t/p/h632/7byNJxOKKyNNWSSXAFM185RD1oJ.jpg</thumb>
    <profile>https://www.themoviedb.org/person/84935</profile>
  </actor>
  <actor>
    <name>John Gallaudet</name>
    <role>Parker</role>
    <thumb>http://image.tmdb.org/t/p/h632/oXNhH6anRafBePniPYDpLb8DGmW.jpg</thumb>
    <profile>https://www.themoviedb.org/person/95666</profile>
  </actor>
  <actor>
    <name>Shelby Bacon</name>
    <role>Vanderbilt</role>
    <thumb/>
    <profile>https://www.themoviedb.org/person/1127492</profile>
  </actor>
  <actor>
    <name>Joan Arnold</name>
    <role>Daphne</role>
    <thumb/>
    <profile>https://www.themoviedb.org/person/1278003</profile>
  </actor>
  <actor>
    <name>Edward Arnold Jr.</name>
    <role>Second Dancer Ted Bumps Into (uncredited)</role>
    <thumb/>
    <profile>https://www.themoviedb.org/person/1279646</profile>
  </actor>
  <actor>
    <name>Irving Berlin</name>
    <role>Flower Store Manager (uncredited)</role>
    <thumb/>
    <profile>https://www.themoviedb.org/person/30176</profile>
  </actor>
  <actor>
    <name>Ruth Clifford</name>
    <role>Woman (uncredited) (unconfirmed)</role>
    <thumb>http://image.tmdb.org/t/p/h632/6kZ6bEwbHeBaDtdCEHbHxKjHUm1.jpg</thumb>
    <profile>https://www.themoviedb.org/person/217748</profile>
  </actor>
  <actor>
    <name>Oscar 'Dutch' Hendrian</name>
    <role>Nightclub Doorman (uncredited)</role>
    <thumb>http://image.tmdb.org/t/p/h632/m7V2M17gHTqkD31Yk2oE3rakkpr.jpg</thumb>
    <profile>https://www.themoviedb.org/person/1204352</profile>
  </actor>
  <actor>
    <name>Douglas MacArthur</name>
    <role>In montage (archive footage) (uncredited)</role>
    <thumb>http://image.tmdb.org/t/p/h632/6UvvC9pTH17e2vYzZVFms4kQVlh.jpg</thumb>
    <profile>https://www.themoviedb.org/person/1027218</profile>
  </actor>
  <actor>
    <name>Keith Richards</name>
    <role>Assistant Director (uncredited)</role>
    <thumb/>
    <profile>https://www.themoviedb.org/person/120004</profile>
  </actor>
  <actor>
    <name>Ronald R. Rondell</name>
    <role>Orchestra Leader (uncredited)</role>
    <thumb/>
    <profile>https://www.themoviedb.org/person/1186118</profile>
  </actor>
  <actor>
    <name>Julia Faye</name>
    <role>Guest at Inn (uncredited)</role>
    <thumb>http://image.tmdb.org/t/p/h632/5RRx4HV5JVtbSgjn4wbK1xcA2iA.jpg</thumb>
    <profile>https://www.themoviedb.org/person/130494</profile>
  </actor>
  <actor>
    <name>Mildred Harris</name>
    <role>Maid (uncredited)</role>
    <thumb>http://image.tmdb.org/t/p/h632/9zGZMmKiYwUMZXRXWJ2JZDw6avi.jpg</thumb>
    <profile>https://www.themoviedb.org/person/89186</profile>
  </actor>
  <actor>
    <name>Bud Jamison</name>
    <role>Santa Claus (uncredited)</role>
    <thumb>http://image.tmdb.org/t/p/h632/AiiqQpcsDraQqYxkKwwKHmCU0QE.jpg</thumb>
    <profile>https://www.themoviedb.org/person/89615</profile>
  </actor>
  <actor>
    <name>Lynda Grey</name>
    <role>Girl (uncredited)</role>
    <thumb/>
    <profile>https://www.themoviedb.org/person/1582751</profile>
  </actor>
  <actor>
    <name>Bert Moorhouse</name>
    <role>Cameraman on Film Set</role>
    <thumb>http://image.tmdb.org/t/p/h632/c8E2e4rlsdI75CthWxOdGXWbwu9.jpg</thumb>
    <profile>https://www.themoviedb.org/person/122984</profile>
  </actor>
  <producer>
    <name>Mark Sandrich</name>
    <role>Producer</role>
    <thumb>http://image.tmdb.org/t/p/h632/77Gh9XVPbWT68eoOGzOwu4e1gUC.jpg</thumb>
  </producer>
  <producer>
    <name>Norman Lacey</name>
    <role>Location Manager</role>
    <thumb/>
  </producer>
  <trailer>plugin://plugin.video.youtube/?action=play_video&amp;videoid=rjhBYyMfmXY</trailer>
  <languages>English</languages>
  <dateadded>2018-12-06 17:21:51</dateadded>
  <fileinfo>
    <streamdetails>
      <video>
        <codec>h264</codec>
        <aspect>1.33</aspect>
        <width>1440</width>
        <height>1080</height>
        <durationinseconds>6072</durationinseconds>
        <stereomode/>
      </video>
      <audio>
        <codec>AAC</codec>
        <language>eng</language>
        <channels>2</channels>
      </audio>
      <subtitle>
        <language>eng</language>
      </subtitle>
    </streamdetails>
  </fileinfo>
  <!--tinyMediaManager meta data-->
  <source>UNKNOWN</source>
  <edition>NONE</edition>
  <original_filename>Holiday Inn (1942) (tt0034862) (1080p-h264 AAC-2ch).mp4</original_filename>
  <user_note/>
</movie>

and for a tv series

<tvshow>
  <title>American Dad!</title>
  <originaltitle />
  <showtitle>American Dad!</showtitle>
  <sorttitle />
  <year>2005</year>
  <rating>8.5</rating>
  <userrating>0.0</userrating>
  <votes>8460</votes>
  <outline />
  <plot>C.I.A. Agent Stan Smith is constantly fighting off terrorists who threaten the safety of the USA (sometimes causing more harm than good). His wife Francine is an average house wife with two kids, Hayley, Stan's only daughter, an average rebellious teenager and Steve, Stan's only son, a geek who enjoys Dungeons and Dragons, gaming and comic book conventions. Then there's Roger, the home's illegal (space) alien who the Smith's are keeping protected. Last but not least, there's Klaus, the Smith's wisecracking talking fish (swapped from  his human body years ago by the CIA).</plot>
  <tagline />
  <runtime>25</runtime>
  <thumb aspect="poster">https://assets.fanart.tv/fanart/tv/73141/tvposter/american-dad-5434598713fa6.jpg</thumb>
  <thumb aspect="poster" season="0" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a3e7c6625997.jpg</thumb>
  <thumb aspect="poster" season="1" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a1f16b7592fb.jpg</thumb>
  <thumb aspect="poster" season="2" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a1f17c141717.jpg</thumb>
  <thumb aspect="poster" season="3" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a1f186f1c026.jpg</thumb>
  <thumb aspect="poster" season="4" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a1f1941664ed.jpg</thumb>
  <thumb aspect="poster" season="5" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a1f19fde740d.jpg</thumb>
  <thumb aspect="poster" season="6" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a1ff9d73cd2c.jpg</thumb>
  <thumb aspect="poster" season="7" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a1ffbd1d0ab3.jpg</thumb>
  <thumb aspect="poster" season="8" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a1ffbfab34eb.jpg</thumb>
  <thumb aspect="poster" season="9" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a2421779785a.jpg</thumb>
  <thumb aspect="poster" season="10" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a244b3e3d32b.jpg</thumb>
  <thumb aspect="poster" season="11" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a254caac5d4f.jpg</thumb>
  <thumb aspect="poster" season="12" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a2576653a37c.jpg</thumb>
  <thumb aspect="poster" season="13" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a26c8f1a3210.jpg</thumb>
  <thumb aspect="poster" season="14" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5a270f1b309d9.jpg</thumb>
  <thumb aspect="poster" season="15" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5c1b76d472b53.jpg</thumb>
  <thumb aspect="poster" season="16" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5c16704b17cc8.jpg</thumb>
  <thumb aspect="poster" season="17" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5d8b7ef49fc15.jpg</thumb>
  <thumb aspect="banner" season="0" type="season">https://assets.fanart.tv/fanart/tv/73141/showbackground/american-dad-50a7a9e432c24.jpg</thumb>
  <thumb aspect="banner" season="1" type="season">https://artworks.thetvdb.com/banners/seasonswide/73141-1.jpg</thumb>
  <thumb aspect="banner" season="2" type="season">https://artworks.thetvdb.com/banners/seasonswide/73141-2.jpg</thumb>
  <thumb aspect="banner" season="3" type="season">https://artworks.thetvdb.com/banners/seasonswide/73141-3.jpg</thumb>
  <thumb aspect="banner" season="4" type="season">https://artworks.thetvdb.com/banners/seasonswide/73141-4.jpg</thumb>
  <thumb aspect="banner" season="5" type="season">https://artworks.thetvdb.com/banners/seasonswide/73141-5.jpg</thumb>
  <thumb aspect="banner" season="6" type="season">https://artworks.thetvdb.com/banners/seasonswide/73141-6.jpg</thumb>
  <thumb aspect="banner" season="7" type="season">https://artworks.thetvdb.com/banners/seasonswide/73141-7.jpg</thumb>
  <thumb aspect="banner" season="8" type="season">https://artworks.thetvdb.com/banners/seasonswide/73141-8.jpg</thumb>
  <thumb aspect="banner" season="9" type="season">http://thetvdb.com/banners/seasons/5cad7cfa79478.jpg</thumb>
  <thumb aspect="banner" season="10" type="season">https://artworks.thetvdb.com/banners/seasonswide/73141-10.jpg</thumb>
  <thumb aspect="banner" season="11" type="season">http://thetvdb.com/banners/seasons/5cad7d1192c8e.jpg</thumb>
  <thumb aspect="banner" season="12" type="season">http://thetvdb.com/banners/seasons/5cad7d1d34e9e.jpg</thumb>
  <thumb aspect="banner" season="13" type="season">http://thetvdb.com/banners/seasons/5cad7d27dcf1f.jpg</thumb>
  <thumb aspect="banner" season="14" type="season">http://thetvdb.com/banners/seasons/5cad7d3365be3.jpg</thumb>
  <thumb aspect="banner" season="15" type="season">http://thetvdb.com/banners/seasons/5cad7d432719a.jpg</thumb>
  <thumb aspect="banner" season="16" type="season">http://thetvdb.com/banners/seasons/5cada7375d3da.jpg</thumb>
  <thumb aspect="banner" season="17" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5d8b7ef49fc15.jpg</thumb>
  <thumb aspect="thumb" season="0" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonthumb/American Dad (7).jpg</thumb>
  <thumb aspect="thumb" season="1" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonthumb/american-dad-4fef685ed33f0.jpg</thumb>
  <thumb aspect="thumb" season="2" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonthumb/american-dad-4fef68691567a.jpg</thumb>
  <thumb aspect="thumb" season="3" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonthumb/american-dad-4fef6871f0674.jpg</thumb>
  <thumb aspect="thumb" season="4" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonthumb/american-dad-4fef687be4b68.jpg</thumb>
  <thumb aspect="thumb" season="5" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonthumb/american-dad-4fef68850fdcb.jpg</thumb>
  <thumb aspect="thumb" season="6" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonthumb/american-dad-4fef688f47ea2.jpg</thumb>
  <thumb aspect="thumb" season="7" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonthumb/american-dad-4fef689919b6d.jpg</thumb>
  <thumb aspect="thumb" season="8" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonthumb/american-dad-4fef68a56cc6a.jpg</thumb>
  <thumb aspect="thumb" season="9" type="season">https://artworks.thetvdb.com/banners/seasons/73141-9-2.jpg</thumb>
  <thumb aspect="thumb" season="10" type="season">https://artworks.thetvdb.com/banners/seasons/73141-10.jpg</thumb>
  <thumb aspect="thumb" season="11" type="season">https://artworks.thetvdb.com/banners/seasons/73141-11.jpg</thumb>
  <thumb aspect="thumb" season="12" type="season">https://artworks.thetvdb.com/banners/seasons/73141-12.jpg</thumb>
  <thumb aspect="thumb" season="13" type="season">https://artworks.thetvdb.com/banners/seasons/73141-13.jpg</thumb>
  <thumb aspect="thumb" season="14" type="season">https://artworks.thetvdb.com/banners/seasons/73141-14.jpg</thumb>
  <thumb aspect="thumb" season="15" type="season">https://artworks.thetvdb.com/banners/seasons/73141-15.jpg</thumb>
  <thumb aspect="thumb" season="16" type="season">https://artworks.thetvdb.com/banners/seasons/5cada7375d3da.jpg</thumb>
  <thumb aspect="thumb" season="17" type="season">https://assets.fanart.tv/fanart/tv/73141/seasonposter/american-dad-5d8b7ef49fc15.jpg</thumb>
  <fanart>
    <thumb>https://assets.fanart.tv/fanart/tv/73141/showbackground/american-dad-50a7a9e41e247.jpg</thumb>
  </fanart>
  <mpaa>TV-14</mpaa>
  <certification>US:TV-14</certification>
  <episodeguide>
    <url cache="auth.json" post="yes">https://api.thetvdb.com/login?{"apikey":"439DFEBA9D3059C6","id":73141}|Content-Type=application/json</url>
  </episodeguide>
  <id>73141</id>
  <imdbid>tt0397306</imdbid>
  <uniqueid default="false" type="imdb">tt0397306</uniqueid>
  <uniqueid default="false" type="zap2it">EP00716445</uniqueid>
  <uniqueid default="true" type="tvdb">73141</uniqueid>
  <premiered>2005-02-06</premiered>
  <status>Continuing</status>
  <watched>false</watched>
  <playcount />
  <genre>Animation</genre>
  <genre>Comedy</genre>
  <studio>TBS</studio>
  <actor>
    <name>Seth MacFarlane</name>
    <role>Stan Smith</role>
    <thumb>https://artworks.thetvdb.com/banners/person/255117/5efa42879ccd6.jpg</thumb>
    <profile />
  </actor>
  <actor>
    <name>Wendy Schaal</name>
    <role>Francine Smith</role>
    <thumb>https://artworks.thetvdb.com/banners/person/261612/5efa3ce3e7a67.jpg</thumb>
    <profile />
  </actor>
  <actor>
    <name>Rachael MacFarlane</name>
    <role>Hayley Smith</role>
    <thumb>https://artworks.thetvdb.com/banners/person/321496/5efa4100446c7.jpg</thumb>
    <profile />
  </actor>
  <actor>
    <name>Scott Grimes</name>
    <role>Steve Smith</role>
    <thumb>https://artworks.thetvdb.com/banners/person/274189/5efa3e92daaa1.jpg</thumb>
    <profile />
  </actor>
  <actor>
    <name>Dee Bradley Baker</name>
    <role>Klaus</role>
    <thumb>https://artworks.thetvdb.com/banners/person/281259/5efa43408ad73.jpg</thumb>
    <profile />
  </actor>
  <actor>
    <name>Jeff Fischer</name>
    <role>Jeff Fischer</role>
    <thumb>https://artworks.thetvdb.com/banners/person/356151/5efa43aeca08a.jpg</thumb>
    <profile />
  </actor>
  <actor>
    <name>Patrick Stewart</name>
    <role>Avery Bullock</role>
    <thumb>https://artworks.thetvdb.com/banners/person/284167/5eed627096689.jpg</thumb>
    <profile />
  </actor>
  <trailer>http://www.youtube.com/watch?v=apr31MFjg08&amp;hd=1</trailer>
  <dateadded>2019-09-01 13:49:40</dateadded>
  <user_note />
</tvshow>

and an episode

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--created on 2020-11-26 07:27:08 - tinyMediaManager 3.1.10-->
<episodedetails>
  <title>A Smith in the Hand</title>
  <originaltitle/>
  <showtitle>American Dad!</showtitle>
  <season>2</season>
  <episode>2</episode>
  <displayseason>-1</displayseason>
  <displayepisode>-1</displayepisode>
  <id>306169</id>
  <uniqueid default="true" type="tvdb">306169</uniqueid>
  <rating>7.3</rating>
  <userrating>0.0</userrating>
  <votes>1023</votes>
  <plot>When Steve brings home a permission slip to take sex ed at school, Stan flips out and demands to teach it himself. However, after Stan unrealistically explains the birds and the bees to Steve, he gets into an accident that causes him to take matters into his own hands. Meanwhile, Roger becomes a bartender in hopes of making something of himself.</plot>
  <runtime>25</runtime>
  <thumb>https://artworks.thetvdb.com/banners/episodes/73141/306169.jpg</thumb>
  <mpaa/>
  <premiered>2005-09-18</premiered>
  <aired>2005-09-18</aired>
  <watched>false</watched>
  <playcount/>
  <studio>TBS</studio>
  <credits>David Hemingson</credits>
  <director>Pam Cooke</director>
  <actor>
    <name>Kevin Michael Richardson</name>
    <role/>
    <thumb/>
    <profile/>
  </actor>
  <actor>
    <name>Mike Barker</name>
    <role/>
    <thumb/>
    <profile/>
  </actor>
  <actor>
    <name>Mike Henry</name>
    <role/>
    <thumb/>
    <profile/>
  </actor>
  <actor>
    <name>Peter MacKenzie</name>
    <role/>
    <thumb/>
    <profile/>
  </actor>
  <actor>
    <name>Scott Menville</name>
    <role/>
    <thumb/>
    <profile/>
  </actor>
  <actor>
    <name>Seth MacFarlane</name>
    <role/>
    <thumb/>
    <profile/>
  </actor>
  <actor>
    <name>Wendy Schaal</name>
    <role/>
    <thumb/>
    <profile/>
  </actor>
  <trailer/>
  <dateadded>2020-01-19 10:49:57</dateadded>
  <epbookmark/>
  <code/>
  <fileinfo>
    <streamdetails>
      <video>
        <codec>h264</codec>
        <aspect>1.33</aspect>
        <width>1440</width>
        <height>1080</height>
        <durationinseconds>1315</durationinseconds>
        <stereomode/>
      </video>
      <audio>
        <codec>AAC</codec>
        <language>eng</language>
        <channels>2</channels>
      </audio>
      <subtitle>
        <language>eng</language>
      </subtitle>
    </streamdetails>
  </fileinfo>
  <!--tinyMediaManager meta data-->
  <source>DVD</source>
  <original_filename>American Dad! (2005) (S02E02) (2005-09-18) (1080p-h264 BluRay AAC-2ch) A Smith in the Hand.mp4</original_filename>
  <user_note/>
</episodedetails>

these were made using Tiny Media Manager…

Welcome to the club.

Whilst making manual edits to an nfo file is ok it is not really a good idea to build the them by hand unless you have a very good idea of what is required. See https://kodi.wiki/view/NFO_files

I suggest that you start again, removing your nfo test files and using an editor instead. I use Ember Media Manager, others use Tiny Media Manager, or MediaElch, there are no doubt others too.

The first thing to check is that your files naming and directory structures conform to either the Plex naming conventions or the kodi naming conventions. Once you have picked which one to follow then you have to apply it consistently.

I haven’t been able to find a more up to date documentation. Plex seems to have abandoned any previous commitments to producing documentation for 3rd party devs. There are a few threads (with moderation for expletives) that complain about this, but so far nothing newer.

Have a Happy Hogmanay, and hopefully a better 2021 than 2020 was.

The cheeky buggers!
I do like writing agents - and it was good to come across this forum
Do have a very happy new year!
This one has been a very strange one… My hands have had more alcohol than my liver!
all the best!!

1 Like

Thanks for all the help.

The Plex community is great.

The new “Plex Movie” agent has a function for “Minimum automatic collection size”. This setting will allow you to set how many movies need to be in a collection for Plex to display it. This is a nice feature that will allow us to prep our movies for collections when we don’t currently have all of them. For me, I’d like to be able to setup my files, and if I only have one film in a collection, to not have the collection appear until a second film is added. This is how the setting works in the Plex Movie agent.

Is there any way to get this setting incorporated into the XBMC agent?

That’s not what it does. It simply won’t create the collection until the threshold number of movies is reached.

As @OttoKerner points out that is not how it works. I am guessing that instead of adding the collection to the film as it it goes along it stores the collection tags in an array along with a reference to the film. Then after loading all the films it processes the array and only adds collection tags to films where the minimum number is reached.

It is not really a good solution as Plex allows multiple agents to be used. A standard work around to the multiple editions of a film is to use different agents for each edition so they do not get placed in the same film record. In which case each agent would only see one film even though they may be more than your intended minimum.

If you are loading nfo files then it is just as easy to remove the collection tag from the nfos so that this agent doesn’t add a collection tag when you don’t want it too.

Another reason this is perhaps not so useful is that as a collection can now cross libraries you might have a case where you want a collection that only has one film because it also has an associate tv series and or music.

@OttoKerner Thank you for clarifying this. If I’m understanding this correctly, this is how it works. My intent is to have the threshold set at two, so that I don’t have collections with one title.

I have one Harry Potter movie, but I don’t have any of the others. I know that there are others and at some point there will be a collection in my library, so I prep my one film with a collection name. Despite the film being tagged for a collection, Plex will not create the collection in my library until I add a second film with the same collection name. Since the collection isn’t created until that time, I’ll need to wait to add the poster and background.

Is my understanding correct? If so, I’d still like to have the setting available so that I can prep films for upcoming additions to the library along with films that have planned sequels.

No, this setting is solely for automatically-created collections. There is nothing you can do to prepare for it.