Movie event naming

This commit is contained in:
Ruud
2011-09-26 20:00:19 +02:00
parent e8a8b8a4d4
commit c8ffe13cd0
7 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ class LibraryPlugin(Plugin):
if library.status_id == done_status.get('id') and not force:
do_update = False
else:
info = fireEvent('provider.movie.info', merge = True, identifier = identifier)
info = fireEvent('movie.info', merge = True, identifier = identifier)
if not info or len(info) == 0:
log.error('Could not update, no movie info to work with: %s' % identifier)
return False
+1 -1
View File
@@ -79,7 +79,7 @@ class MoviePlugin(Plugin):
movies = Env.get('cache').get(cache_key)
if not movies:
results = fireEvent('provider.movie.search', q = params.get('q'))
results = fireEvent('movie.search', q = params.get('q'), merge = True)
# Combine movie results
movies = []
+3 -3
View File
@@ -318,7 +318,7 @@ class Scanner(Plugin):
# Search based on OpenSubtitleHash
if not imdb_id and not group['is_dvd']:
for file in files['movie']:
movie = fireEvent('provider.movie.by_hash', file = file, merge = True)
movie = fireEvent('movie.by_hash', file = file, merge = True)
if len(movie) > 0:
imdb_id = movie[0]['imdb']
@@ -330,7 +330,7 @@ class Scanner(Plugin):
if len(identifier) > 2:
movie = fireEvent('provider.movie.search', q = identifier, merge = True, limit = 1)
movie = fireEvent('movie.search', q = identifier, merge = True, limit = 1)
if len(movie) > 0:
imdb_id = movie[0]['imdb']
@@ -339,7 +339,7 @@ class Scanner(Plugin):
log.debug('Identifier to short to use for search: %s' % identifier)
if imdb_id:
#movie = fireEvent('provider.movie.info', identifier = imdb_id, merge = True)
#movie = fireEvent('movie.info', identifier = imdb_id, merge = True)
#if movie and movie.get('imdb'):
return fireEvent('library.add', attrs = {
'identifier': imdb_id
+1 -1
View File
@@ -66,7 +66,7 @@ class Searcher(Plugin):
if has_better_quality is 0:
log.info('Search for %s in %s' % (default_title, type['quality']['label']))
results = fireEvent('provider.yarr.search', movie, type['quality'], merge = True)
results = fireEvent('yarr.search', movie, type['quality'], merge = True)
sorted_results = sorted(results, key = lambda k: k['score'], reverse = True)
# Add them to this movie releases list