I wrote a small python script to pull some additional genres and write them onto my tv shows. However, I don’t see a way to “lock” the genre field via the options in sqlite and it seems that whenever a new episode is added, Plex will refresh the whole series, wiping out my changes.
Is there any way to programatically set these locks? I’m assuming that lock will prevent the full-series-refresh that happens during the new episode refresh? (please correct me if I’m wrong!)
Locking the fields will prevent the data changing during a refresh. Locking the fields is not an on/off thing. It’s in the “metadata_items” table, “user_fields” field. A locked entry looks like this:
lockedFields=2|6
Where the 2 and 6 are the specific fields. Lock the fields you want manually then check this field to identify the number you want to use. Then add this to the entries you want.
Edit: that is the pipe character between the values.
thanks! I liked someone else’s suggestion of lock the fields via the gui then check the table to see which number is dropped. “application is where the theory rubber meets the road” etc etc