Remove Kinopolis as automation source
This commit is contained in:
@@ -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 <a href="http://kinepolis.be">Kinepolis</a>',
|
|
||||||
'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',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}]
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user