committed by
GitHub
3 changed files with 0 additions and 174 deletions
@ -1,54 +0,0 @@ |
|||
import datetime |
|||
|
|||
from couchpotato.core.helpers.rss import RSS |
|||
from couchpotato.core.logger import CPLog |
|||
from couchpotato.core.media.movie.providers.automation.base import Automation |
|||
|
|||
|
|||
log = CPLog(__name__) |
|||
|
|||
autoload = 'Kinepolis' |
|||
|
|||
|
|||
class Kinepolis(Automation, RSS): |
|||
|
|||
interval = 1800 |
|||
rss_url = 'http://kinepolis.be/nl/top10-box-office/feed' |
|||
|
|||
def getIMDBids(self): |
|||
|
|||
movies = [] |
|||
|
|||
rss_movies = self.getRSSData(self.rss_url) |
|||
|
|||
for movie in rss_movies: |
|||
name = self.getTextElement(movie, 'title') |
|||
year = datetime.datetime.now().strftime('%Y') |
|||
|
|||
imdb = self.search(name, year) |
|||
|
|||
if imdb and self.isMinimalMovie(imdb): |
|||
movies.append(imdb['imdb']) |
|||
|
|||
return movies |
|||
|
|||
|
|||
config = [{ |
|||
'name': 'kinepolis', |
|||
'groups': [ |
|||
{ |
|||
'tab': 'automation', |
|||
'list': 'automation_providers', |
|||
'name': 'kinepolis_automation', |
|||
'label': 'Kinepolis', |
|||
'description': 'Imports movies from the current top 10 of kinepolis.', |
|||
'options': [ |
|||
{ |
|||
'name': 'automation_enabled', |
|||
'default': False, |
|||
'type': 'enabler', |
|||
}, |
|||
], |
|||
}, |
|||
], |
|||
}] |
@ -1,48 +0,0 @@ |
|||
from couchpotato.core.helpers.rss import RSS |
|||
from couchpotato.core.logger import CPLog |
|||
from couchpotato.core.media.movie.providers.automation.base import Automation |
|||
|
|||
log = CPLog(__name__) |
|||
|
|||
autoload = 'Moviemeter' |
|||
|
|||
|
|||
class Moviemeter(Automation, RSS): |
|||
|
|||
interval = 1800 |
|||
rss_url = 'http://www.moviemeter.nl/rss/cinema' |
|||
|
|||
def getIMDBids(self): |
|||
|
|||
movies = [] |
|||
|
|||
rss_movies = self.getRSSData(self.rss_url) |
|||
|
|||
for movie in rss_movies: |
|||
imdb = self.search(self.getTextElement(movie, 'title')) |
|||
|
|||
if imdb and self.isMinimalMovie(imdb): |
|||
movies.append(imdb['imdb']) |
|||
|
|||
return movies |
|||
|
|||
|
|||
config = [{ |
|||
'name': 'moviemeter', |
|||
'groups': [ |
|||
{ |
|||
'tab': 'automation', |
|||
'list': 'automation_providers', |
|||
'name': 'moviemeter_automation', |
|||
'label': 'Moviemeter', |
|||
'description': 'Imports movies from the current top 10 of moviemeter.nl.', |
|||
'options': [ |
|||
{ |
|||
'name': 'automation_enabled', |
|||
'default': False, |
|||
'type': 'enabler', |
|||
}, |
|||
], |
|||
}, |
|||
], |
|||
}] |
@ -1,72 +0,0 @@ |
|||
from couchpotato.core.event import fireEvent |
|||
from couchpotato.core.helpers.rss import RSS |
|||
from couchpotato.core.helpers.variable import tryInt, splitString |
|||
from couchpotato.core.logger import CPLog |
|||
from couchpotato.core.media.movie.providers.automation.base import Automation |
|||
|
|||
log = CPLog(__name__) |
|||
|
|||
autoload = 'MoviesIO' |
|||
|
|||
|
|||
class MoviesIO(Automation, RSS): |
|||
|
|||
interval = 1800 |
|||
|
|||
def getIMDBids(self): |
|||
|
|||
movies = [] |
|||
|
|||
enablers = [tryInt(x) for x in splitString(self.conf('automation_urls_use'))] |
|||
|
|||
index = -1 |
|||
for rss_url in splitString(self.conf('automation_urls')): |
|||
|
|||
index += 1 |
|||
if not enablers[index]: |
|||
continue |
|||
|
|||
rss_movies = self.getRSSData(rss_url, headers = {'Referer': ''}) |
|||
|
|||
for movie in rss_movies: |
|||
|
|||
nameyear = fireEvent('scanner.name_year', self.getTextElement(movie, 'title'), single = True) |
|||
imdb = self.search(nameyear.get('name'), nameyear.get('year'), imdb_only = True) |
|||
|
|||
if not imdb: |
|||
continue |
|||
|
|||
movies.append(imdb) |
|||
|
|||
return movies |
|||
|
|||
|
|||
config = [{ |
|||
'name': 'moviesio', |
|||
'groups': [ |
|||
{ |
|||
'tab': 'automation', |
|||
'list': 'watchlist_providers', |
|||
'name': 'moviesio', |
|||
'label': 'Movies.IO', |
|||
'description': 'Imports movies from <a href="http://movies.io" target="_blank">Movies.io</a> RSS watchlists', |
|||
'options': [ |
|||
{ |
|||
'name': 'automation_enabled', |
|||
'default': False, |
|||
'type': 'enabler', |
|||
}, |
|||
{ |
|||
'name': 'automation_urls_use', |
|||
'label': 'Use', |
|||
}, |
|||
{ |
|||
'name': 'automation_urls', |
|||
'label': 'url', |
|||
'type': 'combined', |
|||
'combine': ['automation_urls_use', 'automation_urls'], |
|||
}, |
|||
], |
|||
}, |
|||
], |
|||
}] |
Loading…
Reference in new issue