diff --git a/couchpotato/core/providers/automation/kinepolis/__init__.py b/couchpotato/core/providers/automation/kinepolis/__init__.py deleted file mode 100644 index 3d4a156c..00000000 --- a/couchpotato/core/providers/automation/kinepolis/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -from .main import Kinepolis - -def start(): - return Kinepolis() - -config = [{ - 'name': 'kinepolis', - 'groups': [ - { - 'tab': 'automation', - 'name': 'kinepolis_automation', - 'label': 'Kinepolis', - 'description': 'from Kinepolis', - 'options': [ - { - 'name': 'automation_enabled', - 'default': False, - 'type': 'enabler', - }, - { - 'name': 'automation_use_requirements', - 'label': 'Use requirements', - 'description': 'Use the minimal requirements set above', - 'default': True, - 'advanced': True, - 'type': 'bool', - }, - ], - }, - ], -}] diff --git a/couchpotato/core/providers/automation/kinepolis/main.py b/couchpotato/core/providers/automation/kinepolis/main.py deleted file mode 100644 index 08e0c692..00000000 --- a/couchpotato/core/providers/automation/kinepolis/main.py +++ /dev/null @@ -1,41 +0,0 @@ -from couchpotato.core.helpers.rss import RSS -from couchpotato.core.logger import CPLog -from couchpotato.core.providers.automation.base import Automation -import xml.etree.ElementTree as XMLTree - -log = CPLog(__name__) - - -class Kinepolis(Automation, RSS): - - urls = { - 'top10': 'http://kinepolis.be/nl/top10-box-office/feed', - } - - - def getIMDBids(self): - - if self.isDisabled(): - return - - movies = [] - for key in self.urls: - url = self.urls[key] - cache_key = 'kinepolis.%s' % key - - rss_data = self.getCache(cache_key, url) - try: - items = self.getElements(XMLTree.fromstring(rss_data), 'channel/item') - except Exception, e: - log.debug('%s, %s' % (self.getName(), e)) - continue - - for item in items: - title = self.getTextElement(item, "title").lower() - result = self.search(title) - - if result: - if not self.conf('automation_use_requirements') or self.isMinimal(result): - movies.append(result) - - return movies