I pre-tag all my media before it’s dropped into library for the next scan, so in my particular setup I rely almost exclusively on the LocalMedia plugin to provide tag values.
I noticed today while doing some cleanup that none of my Movies had the content rating applied. Digging into the plugin reveals a typo in the code.
Around line 559:
<br />
#Content rating from iTunEXTC atom<br />
try:<br />
rating = tags["----:com.apple.iTunes:iTunEXTC"][0].split('|')[1]<br />
if len(rating) > 0:<br />
episode.content_rating = rating<br />
except: pass<br />
Where the correct code should read:
<br />
#Content rating from iTunEXTC atom<br />
try:<br />
rating = tags["----:com.apple.iTunes:iTunEXTC"][0].split('|')[1]<br />
if len(rating) > 0:<br />
item.content_rating = rating<br />
except: pass<br />
Re-scanning after the change correctly populates the content rating on movies.
Hope this helps someone else as well!