Hi,
I don't really consider myself a developer so I hope this is in the right place.
All my video files are m4v (via Handbrake). They all have metadata embedded (via MetaX). In PMS, I am using the latest version with scanner set to Plex Movie Scanner and the Agent set to Personal Media. I have also ensured that Local Assets appears at the top of the list in settings.
Most metadata imports successfully but I wanted a little more and so, after some hunting, tried making changes to 'videohelpers.py' from the LocalMedia.bundle. I made some changes to preface the content rating with 'gb/' where appropriate and, to my delight, it worked perfectly even though I've no direct experience of python. My one remaining problem area was the sort title - I've shown the relevant piece of code from the py file below this post.
The variable 'title_sort' definitely picks up the sort title metadata field from my m4vs. I tested this by writing the field to 'item.title' and the title did indeed reflect the intended sort title. So ... the piece of code below picks up the metadata I want but never seems to write it back into PMS in the sort title field. I have no idea why this should be. Maybe it's getting interfered with further up the code 'food chain'.
If anyone could advise some next steps on how to ernsure that the sort title metadata from my m4v gets written into PMS I would be very appreciative.
Regards
# Sort Title
try:
title_sort = tags["sonm"][0]
item.title_sort = title_sort
except: pass