# Custom metadata on import

**URL:** <https://forums.plex.tv/t/custom-metadata-on-import/750456>\
**Category:** Metadata & Adding Files\
**Tags:** server-linux\
**Created:** [October 13, 2021, 3:54pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456 "2021-10-13T15:54:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![w1zz4](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/w1zz4/32/82407_2.png) [@w1zz4](https://forums.plex.tv/u/w1zz4)\
**Post date:** [October 13, 2021, 3:54pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/1 "2021-10-13T15:54:18Z")

</div>

Server Version#: 1.24.4.5081  
Player Version#: 4.67.0

I am trying to find the correct way to import custom metadata when importing file. I tried nfo file, editing mkv file properties directly and trying to change it using API without success.

I am importing automatically Twitch stream from a few streamers and would like to have the right title in plex without having to rename the file directly.

Thank you

Etienne

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [October 13, 2021, 8:55pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/2 "2021-10-13T20:55:37Z")

</div>

Plex doesn’t read nfo files (beyond at max some IMDb ID to support matching).  
Plex will read embedded metadata from a few file types such as `mp4`, `m4v` or `mov` – it won’t recognize embedded information from matroska files (e.g. `mkv`, `mka`…).

API approach might work if you know the item’s ID after importing it into Plex.

Otherwise your best shot will indeed be to name your files accordingly…

---

<div class="post-metadata">

**Author:** ![russprince](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@russprince](https://forums.plex.tv/u/russprince)\
**Post date:** [October 28, 2021, 3:24pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/3 "2021-10-28T15:24:47Z")

</div>

Actually that is not correct. Yes you can import nfo data into plex fairly easily by using the 2 pluggins (they still work)

XBMCnfoMoviesImporter  
XBMCnfoTVImporter

I highly recommend this as you can custom sets, genres, names, whatever you want. These two pluggins will show up in your library agents, just set them as highest priority on top. You wont be able to use them with the latest library scraper as it has no agent settings. You’ll want to use the older plex movie scanner and plex series scanners. I wouldn’t be able to use plex without it. It’s great.

Also if you need a way to generate nfo data there’s a tool called tinyMediaManager that does exactly this. It works really well for this.

---

<div class="post-metadata">

**Author:** ![HairyHippy](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@HairyHippy](https://forums.plex.tv/u/HairyHippy)\
**Post date:** [November 30, 2021, 10:01am UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/4 "2021-11-30T10:01:08Z")

</div>

@russprince

I really want to use XBMCnfoMoviesImporter as I am transitioning across from Kodi. I’ll still use Kodi as the front end but with the PlexKodiConnect addon.

That said, Plex seems to be struggling to pick up both nfo and local artwork. The nfos are in Kodi compatible format and named the same as the movie file as are the artwork.

My settings are:  
Scanner = Plex Movie Scanner  
Agent = The Movie Database

Order of agent for The Movie Database is:  
XBMCnfoMoviesImporter  
Local Media Assets (Movies)  
TMDB  
Fanart.tv  
Plex Movie (legacy)

So I am assuming it tries to find and read a nfo 1st using XBMCnfoMoviesImporter, then picks up the artwork using local media assets and if can’t find any, then will go to TMDB to get movie info and artwork. Is that not correct?

---

<div class="post-metadata">

**Author:** ![russprince](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@russprince](https://forums.plex.tv/u/russprince)\
**Post date:** [November 30, 2021, 4:18pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/5 "2021-11-30T16:18:35Z")

</div>

My settings:  
scanner = Plex Movie Scanner  
agent = The Movie Database

Agent Order for “The movie database”:  
XBMCnfoMoviesImporter (in settings i have nothing checked but collections)  
Local Media Assets (Movies) (settings: prefer artwork based on language checked)  
The Movie Database  
(everything else is disabled)

My movies generally have 4 to 5 files

Movies folder example:

> Some Movie (2021)  
> … Some Movie (2021).mp4  
> … Some Movie (2021).nfo  
> … Some Movie (2021).srt  
> … Some Movie (2021)-fanart.jpg  
> … Some Movie (2021)-poster.jpg

Make sure you refresh metadata on the movie or even the entire library. Plex seems to find changes to my artwork just fine, but a refresh metadata is needed to see it. The only other thing I do differently is I wrote tools that strip out all but the most important data in the nfo files. A typical movie nfo for a movie of mine only contains title, sorttitle, genres, sets, dates, plot, and id. But honestly I don’t think that should matter, but if there are references to images in your nfo try removing it and see if it makes a difference.

Similar settings for TV Shows using the xbmc nfo tv show importer

Hope that helps

---

<div class="post-metadata">

**Author:** ![HairyHippy](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@HairyHippy](https://forums.plex.tv/u/HairyHippy)\
**Post date:** [November 30, 2021, 6:01pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/6 "2021-11-30T18:01:57Z")

</div>

It sure does @russprince - Thank you! I’ll try refreshing everything again…

Do you not have “enable subtitle file support” in the XBMCnfoMoviesImporter settings?

What about “Disable local media support for artwork, trailers and subtitles (use local media assets instead)” if you are also using local media assets? Although that said, if you have the “enable subtitle file support” as well, not sure if that causes a conflict…

Odd in “Local Media Assets” - I don’t see any settings at all other than “Local music video path”…

---

<div class="post-metadata">

**Author:** ![russprince](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@russprince](https://forums.plex.tv/u/russprince)\
**Post date:** [November 30, 2021, 6:20pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/7 "2021-11-30T18:20:38Z")

</div>

literally the only checkbox enabled in the xbmc agent settings is “Enable generating Collections from tags”

I never experimented with other settings as this seems to have been working ok with my local media.

Also if this helps I found a great way to scrape media info for movies as well as tv shows. it’s called tinymediamanager and can be used to get artwork as well as the nfo data you want (without fluff) I was using kodi itself for scraping, but I like this app much better so I no longer use kodi at all anymore.

Oh and as a side note also make sure plex has properly matched the movie. if it’s not then media can get screwed up too. Just right click on it and either click on match or fix match if you don’t think it’s matched right.

---

<div class="post-metadata">

**Author:** ![HairyHippy](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@HairyHippy](https://forums.plex.tv/u/HairyHippy)\
**Post date:** [November 30, 2021, 6:28pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/8 "2021-11-30T18:28:30Z")

</div>

@russprince I use Ember Media Manager to do the same as Tiny. I never got on with Tiny for some reason.

The only thing I can see missing on the Ember side is the sorttitle, which I really would love to have, especially as I want the title and sorttitle to match the original title.

---

<div class="post-metadata">

**Author:** ![russprince](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@russprince](https://forums.plex.tv/u/russprince)\
**Post date:** [November 30, 2021, 6:56pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/9 "2021-11-30T18:56:54Z")

</div>

I do interesting things with the sorttitle especially since plex allow movies to be in multiple collections (or sets) I put all movies that have sequels in their own sets and i have the sorttitle for each movie in that set be the name of the set and the year of the movie. That way the movies are always sorted chronologically and not by name (which is useful when sequels don’t even have a name that is close to the original)

I put all sequels of all movies in their own folders which helps keeping track of the movies a little bit better, but I understand It can get a little daunting messing with so much metadata in large collections. I wrote tools to edit the nfo’s and write the sorttitle, genres, and sets for me (based on folder names and folder structure). I have about 2100 movies and 250 full tv shows and my sanity is saved by using tools to automate as much as i can.

---

<div class="post-metadata">

**Author:** ![HairyHippy](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@HairyHippy](https://forums.plex.tv/u/HairyHippy)\
**Post date:** [November 30, 2021, 7:01pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/10 "2021-11-30T19:01:54Z")

</div>

Ah so Tiny isn’t adding the sorttile, you have a script/tool that does that?

---

<div class="post-metadata">

**Author:** ![russprince](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@russprince](https://forums.plex.tv/u/russprince)\
**Post date:** [November 30, 2021, 7:14pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/11 "2021-11-30T19:14:19Z")

</div>

tinymediamanager does add it, but i modify it

---

<div class="post-metadata">

**Author:** ![russprince](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@russprince](https://forums.plex.tv/u/russprince)\
**Post date:** [November 30, 2021, 7:20pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/12 "2021-11-30T19:20:14Z")

</div>

actually i just tried it and it does add the tag but it’s empty. so no it doesn’t really add it

---

<div class="post-metadata">

**Author:** ![HairyHippy](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@HairyHippy](https://forums.plex.tv/u/HairyHippy)\
**Post date:** [November 30, 2021, 7:21pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/13 "2021-11-30T19:21:45Z")

</div>

Thanks for checking!

---

<div class="post-metadata">

**Author:** ![HairyHippy](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@HairyHippy](https://forums.plex.tv/u/HairyHippy)\
**Post date:** [November 30, 2021, 8:27pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/14 "2021-11-30T20:27:07Z")

</div>

Comming back to artwork quickly, Ember names the posters and fanart exactly the same as the movie file name, do you know if that works in Plex?

e.g. [Rec] (2007) [imdb-tt1038988][h264][ac3 6]-poster

---

<div class="post-metadata">

**Author:** ![russprince](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@russprince](https://forums.plex.tv/u/russprince)\
**Post date:** [November 30, 2021, 8:44pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/15 "2021-11-30T20:44:08Z")

</div>

if the file matches the actual movie file (with the added -poster) and folder name then it should work, but i recommend naming the folder and files simply the title of the movie and year (like in the format I showed above). That will give you the least trouble with plex and scraping in general (afaik) but I’ve never tried adding id’s or other data to movie names and i’ve not had much trouble getting movies to find matches and sync up local images

---

<div class="post-metadata">

**Author:** ![HairyHippy](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@HairyHippy](https://forums.plex.tv/u/HairyHippy)\
**Post date:** [November 30, 2021, 9:16pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/16 "2021-11-30T21:16:37Z")

</div>

I’d agree with that but other 3rd party apps wouldn’t…

---

<div class="post-metadata">

**Author:** ![russprince](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@russprince](https://forums.plex.tv/u/russprince)\
**Post date:** [November 30, 2021, 9:18pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/17 "2021-11-30T21:18:37Z")

</div>

check here for plex compatible formats:

> **[Naming and organizing your Movie files | Plex Support](https://support.plex.tv/articles/naming-and-organizing-your-movie-media-files/)**
>
> The scanners and metadata agents used by Plex will work best when your major types of content are separated from...

---

<div class="post-metadata">

**Author:** ![HairyHippy](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@HairyHippy](https://forums.plex.tv/u/HairyHippy)\
**Post date:** [November 30, 2021, 9:25pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/18 "2021-11-30T21:25:37Z")

</div>

According to this, the new plex agent is supposed to cope well with all the details in this naming convention, personally, I think it’s a little long-winded.

[https://trash-guides.info/Radarr/Radarr-recommended-naming-scheme/](https://trash-guides.info/Radarr/Radarr-recommended-naming-scheme/)

---

<div class="post-metadata">

**Author:** ![HairyHippy](https://avatars.discourse-cdn.com/v4/letter/h/f05b48/32.png) [@HairyHippy](https://forums.plex.tv/u/HairyHippy)\
**Post date:** [November 30, 2021, 9:32pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/19 "2021-11-30T21:32:04Z")

</div>

my folder names are just year and title but with the addition of [certification] at the end. I used to have my movie folder structured by movie root folder/certification/movie folder/movie files for easy of setting up profiles in Kodi.

---

<div class="post-metadata">

**Author:** ![russprince](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@russprince](https://forums.plex.tv/u/russprince)\
**Post date:** [November 30, 2021, 10:12pm UTC](https://forums.plex.tv/t/custom-metadata-on-import/750456/20 "2021-11-30T22:12:49Z")

</div>

unfortunately the xbmc nfo agent can’t be used with the newest plex movie scraper. that scraper doesn’t even show up in the agents list

[Next page](https://forums.plex.tv/t/custom-metadata-on-import/750456.md?page=2)
