Bug in the LocalMedia plugin (Fix included here)

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!

Hi,



We actually pushed a brand new version of the agent yesterday which should have already resolved this issue. Can you double check that you’re up to date with the agent and try rescanning?



Thanks, Ian

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.