Torrent provider cleanup

This commit is contained in:
Ruud
2012-07-08 12:21:22 +02:00
parent 1018a7dd32
commit 0dfefef0c5
13 changed files with 311 additions and 413 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ class Release(Plugin):
item[info.identifier] = info.value
# Get matching provider
provider = fireEvent('provider.belongs_to', item['url'], single = True)
provider = fireEvent('provider.belongs_to', item['url'], provider = item.get('provider'), single = True)
item['download'] = provider.download
fireEvent('searcher.download', data = item, movie = rel.movie.to_dict({
-1
View File
@@ -1,7 +1,6 @@
from couchpotato.core.event import fireEvent
from couchpotato.core.helpers.encoding import simplifyString
from couchpotato.core.helpers.variable import tryInt
from couchpotato.core.plugins.scanner.main import Scanner
from couchpotato.environment import Env
import re
+4 -1
View File
@@ -29,6 +29,9 @@ class Searcher(Plugin):
# Schedule cronjob
fireEvent('schedule.cron', 'searcher.all', self.all_movies, day = self.conf('cron_day'), hour = self.conf('cron_hour'), minute = self.conf('cron_minute'))
addEvent('app.load', self.all_movies)
def all_movies(self):
if self.in_progress:
@@ -193,7 +196,7 @@ class Searcher(Plugin):
if filedata is 'try_next':
return filedata
successful = fireEvent('download', data = data, movie = movie, manual = manual, single = True, filedata = filedata)
successful = fireEvent('download', data = data, movie = movie, manual = manual, filedata = filedata, single = True)
if successful: