# Writing an Agent

**URL:** <https://forums.plex.tv/t/writing-an-agent/18522>\
**Category:** Dev/API Corner\
**Tags:** scanner-agent-dev\
**Created:** [June 16, 2012, 9:46am UTC](https://forums.plex.tv/t/writing-an-agent/18522 "2012-06-16T09:46:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrPhil](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@MrPhil](https://forums.plex.tv/u/MrPhil)\
**Post date:** [June 16, 2012, 9:46am UTC](https://forums.plex.tv/t/writing-an-agent/18522/1 "2012-06-16T09:46:15Z")

</div>

Any starters for 10?
I want to have a look at writing my own agent and wonder if any one can share an example project with me to get going?  
  
I have seen the articles on the site for writing a plug-in, but I am interested in how I extract metadata from sites such as IMDB, etc.  
  
What I want the agent to do, is simply extract the Content Rating for the local region (UK in my case) and overwrite the one being returned from Freebase (which is a US rating).  
  
Can anyone help get me going?  
  
Thanks  
  
Phil

---

<div class="post-metadata">

**Author:** ![aqntbghd](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/aqntbghd/32/1605_2.png) [@aqntbghd](https://forums.plex.tv/u/aqntbghd)\
**Post date:** [June 16, 2012, 8:45pm UTC](https://forums.plex.tv/t/writing-an-agent/18522/2 "2012-06-16T20:45:11Z")

</div>

Here is your answer : [http://forums.plexapp.com/index.php/topic/23875-uk-film-ratings-pg-12-15-etc](http://forums.plexapp.com/index.php/topic/23875-uk-film-ratings-pg-12-15-etc)  
  
  
  
I’ve tried to localize (and not only i18n) Plex at some point in the past but it didn’t made it thru the devs i think… mays be they are too US-centric 😉

---

<div class="post-metadata">

**Author:** ![MrPhil](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@MrPhil](https://forums.plex.tv/u/MrPhil)\
**Post date:** [June 17, 2012, 10:15am UTC](https://forums.plex.tv/t/writing-an-agent/18522/3 "2012-06-17T10:15:55Z")

</div>

Ah OK thanks - had seen that but couldn’t get the bundle to work. So went back to start of the thread and modified the code to use en-GB. That works, but appreciate I will need to keep amending the code when changes are made and downloaded ☹  
  
  
  
One more question, how do I get the Content Rating “images” to reflect the UK Rating - currently when a film is, say, 15 - no image is displayed?  
  
  
  
Thanks  
  
  
  
Phil

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 10:00pm UTC](https://forums.plex.tv/t/writing-an-agent/18522/4 "2019-12-20T22:00:23Z")

</div>

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