Hi!
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.
# -*- coding: utf-8 -*-
import time, urllib
from bs4 import BeautifulSoup
ELC_BASE_URL = ‘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?
Best regards
It's a little hard to say without more context. Is your bundle properly structured? In particular, double check the .plist that specifies the identifier, etc.
Also, you should use the functionality provided by the plug-in framework instead of importing things like time, urllib, and BeautifulSoup. 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. Check the logs for evidence of that.
It's a little hard to say without more context. Is your bundle properly structured? In particular, double check the .plist that specifies the identifier, etc.
Also, you should use the functionality provided by the plug-in framework instead of importing things like time, urllib, and BeautifulSoup. 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. 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