Jellyfin Forum
SOLVED: Programmatically edit metadata - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: SOLVED: Programmatically edit metadata (/t-solved-programmatically-edit-metadata)



Programmatically edit metadata - isagalaev - 2024-08-25

I've got a problem with metadata for a TV series: the episodes are in the wrong order. For example Episode 14 has the (full and correct) metadata from episode 1 (this happened because the series got re-released with a different order, and the metadata came from an earlier release).

What I tried to do:

- Enabled saving of metadata to .nfo files.
- Shuffled the contents of the files programmatically in the correct order.

This didn't have any effect on the look of the episodes, so I tried to refresh the metadata via the admin dashboard, which simply overwrote my .nfo files instead of reading the metadata from them. I also tried cleaning the cache, restarting the server, disabling external sources, but I can't seemingly force the display to honor the .nfo files.

Any advice? Ideally I'd like to edit the metadata in the internal database, but I don't know where it's kept. Or may be there's an option to force it to get data from .nfo.

Thank you in advance!


RE: Programmatically edit metadata - Efficient_Good_5784 - 2024-08-25

When you go edit the metadata of a show, there should be a display setting to change the "Display order" of the seasons & episodes.

What you need to do is go search the database/website of the top-most metadata provider you set for your library. Rename your files to match as close as possible to its listing of the show.
Then change the option you want for display order in the metadata settings for the show.


RE: Programmatically edit metadata - isagalaev - 2024-08-25

That helped completely, thank you very much!