# Agent not showing up

**URL:** <https://forums.plex.tv/t/agent-not-showing-up/51676>\
**Category:** Dev/API Corner\
**Tags:** scanner-agent-dev\
**Created:** [December 28, 2013, 9:18pm UTC](https://forums.plex.tv/t/agent-not-showing-up/51676 "2013-12-28T21:18:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![monta874](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@monta874](https://forums.plex.tv/u/monta874)\
**Post date:** [December 28, 2013, 9:18pm UTC](https://forums.plex.tv/t/agent-not-showing-up/51676/1 "2013-12-28T21:18:35Z")

</div>

Hi!

&nbsp;

I'm trying to develop a movie agent but PMS does not detect it when I add it among the various bundles, I'm seeking some help.

&nbsp;

```
# -*- coding: utf-8 -*-

import time, urllib  
from bs4 import BeautifulSoup

ELC\_BASE\_URL = ‘[http://www.example.com/](http://www.example.com/)’

ELC\_SEARCH\_URL = ELC\_BASE\_URL + ‘search/?search\_for=%s&category=work’  
ELC\_WORK\_URL = ELC\_BASE\_URL + ‘/work/%s/’  
ELC\_IMAGE\_URL = ELC\_BASE\_URL + ‘’

DEFAULT\_LANG = ‘Arabic’

def Start():  
HTTP.CacheTime = CACHE\_1DAY

class elcinema(Agent.Movies):

# Plex defualts, requirements

name = ‘example’  
languages = [Locale.Language.Arabic, Locale.Language.English]  
primary\_provider = True

def search(self, results, media, lang, manual):  
media = media; ## temp

def update(self, metadata, media, lang, force):  
media = media; ## temp
```

Im wondering why PMS is not detecting my Agent?&nbsp;

&nbsp;

&nbsp;

Best regards

&nbsp;

---

<div class="post-metadata">

**Author:** ![mmccurdy](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mmccurdy/32/83290_2.png) [@mmccurdy](https://forums.plex.tv/u/mmccurdy)\
**Post date:** [December 28, 2013, 10:31pm UTC](https://forums.plex.tv/t/agent-not-showing-up/51676/2 "2013-12-28T22:31:02Z")

</div>

It's a little hard to say without more context. &nbsp;Is your bundle properly structured? &nbsp;In particular, double check the .plist that specifies the identifier, etc. &nbsp;

Also, you should use the functionality provided by the plug-in framework instead of importing things like time, urllib, and BeautifulSoup. &nbsp;I believe, but I'm not certain, that if the plugin is not given elevated privileges in the .plist and it attempts to import external libraries, that could cause it not to load at all. &nbsp;Check the logs for evidence of that.

---

<div class="post-metadata">

**Author:** ![monta874](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@monta874](https://forums.plex.tv/u/monta874)\
**Post date:** [December 28, 2013, 10:39pm UTC](https://forums.plex.tv/t/agent-not-showing-up/51676/3 "2013-12-28T22:39:33Z")

</div>

> It's a little hard to say without more context. &nbsp;Is your bundle properly structured? &nbsp;In particular, double check the .plist that specifies the identifier, etc. &nbsp;
> 
> Also, you should use the functionality provided by the plug-in framework instead of importing things like time, urllib, and BeautifulSoup. &nbsp;I believe, but I'm not certain, that if the plugin is not given elevated privileges in the .plist and it attempts to import external libraries, that could cause it not to load at all. &nbsp;Check the logs for evidence of that.

Thanks for the information. I will check everything you mentioned and will return if I do not succeed.

Bets regards

---

<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 21, 2019, 12:49am UTC](https://forums.plex.tv/t/agent-not-showing-up/51676/4 "2019-12-21T00:49:55Z")

</div>

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