Exemple #1
0
    def start(self):

        config = self.config

        log.info("Starting Cronjobs.")
        self.config = config

        #searchers
        yarrSearch = Searcher(config, self.debug);
        movieSearch = movieSearcher(config);
        self.searchers['yarr'] = yarrSearch
        self.searchers['movie'] = movieSearch

        #trailer cron
        trailerCronJob = startTrailerCron(config, self.debug)
        self.threads['trailer'] = trailerCronJob
        self.searchers['trailerQueue'] = trailerQueue

        #subtitle cron
        subtitleCronJob = startSubtitleCron(config, self.debug)
        self.threads['subtitle'] = subtitleCronJob
        self.searchers['subtitleQueue'] = subtitleQueue

        etaCron = startEtaCron(self.debug)
        self.threads['eta'] = etaCron
        self.searchers['etaQueue'] = etaQueue

        #renamer cron
        renamerCronJob = startRenamerCron(config, self.searchers, self.debug)
        self.threads['renamer'] = renamerCronJob

        #nzb cronjob
        yarrCronJob = startYarrCron(config, self.debug, yarrSearch)
        yarrCronJob.sabNzbd = sabNzbd(config)
        self.threads['yarr'] = yarrCronJob
    def start(self):

        config = self.config

        log.info("Starting Cronjobs.")
        self.config = config

        # searchers
        yarrSearch = Searcher(config, self.debug)
        movieSearch = movieSearcher(config)
        self.searchers["yarr"] = yarrSearch
        self.searchers["movie"] = movieSearch

        # trailer cron
        trailerCronJob = startTrailerCron(config, self.debug)
        self.threads["trailer"] = trailerCronJob
        self.searchers["trailerQueue"] = trailerQueue

        # subtitle cron
        subtitleCronJob = startSubtitleCron(config, self.debug)
        self.threads["subtitle"] = subtitleCronJob
        self.searchers["subtitleQueue"] = subtitleQueue

        etaCron = startEtaCron(config, self.debug)
        self.threads["eta"] = etaCron
        self.searchers["etaQueue"] = etaQueue

        # renamer cron
        renamerCronJob = startRenamerCron(config, self.searchers, self.debug)
        self.threads["renamer"] = renamerCronJob

        # Movie RSS cron
        MovieRSSCronJob = startMovieRSSCron(config, self.searchers, self.debug)
        self.threads["MovieRSS"] = MovieRSSCronJob

        # Kinepolis RSS cron
        KinepolisRSSCronJob = startKinepolisRSSCron(config, self.searchers, self.debug)
        self.threads["KinepolisRSS"] = KinepolisRSSCronJob

        # Trakt cron
        TraktCronJob = startTraktCron(config, self.searchers, self.debug)
        self.threads["Trakt"] = TraktCronJob

        # IMDB Watchlist cron
        IMDBCronJob = startImdbWlCron(config, self.searchers, self.debug)
        self.threads["IMDBWl"] = IMDBCronJob

        # nzb cronjob
        yarrCronJob = startYarrCron(config, self.debug, yarrSearch)
        yarrCronJob.sabNzbd = sabNzbd(config)
        yarrCronJob.transmission = transmission(config)
        yarrCronJob.nzbGet = nzbGet(config)
        self.threads["yarr"] = yarrCronJob
Exemple #3
0
    def start(self):

        config = self.config

        log.info("Starting Cronjobs.")
        self.config = config

        #searchers
        yarrSearch = Searcher(config, self.debug);
        movieSearch = movieSearcher(config);
        self.searchers['yarr'] = yarrSearch
        self.searchers['movie'] = movieSearch

        #trailer cron
        trailerCronJob = startTrailerCron(config, self.debug)
        self.threads['trailer'] = trailerCronJob
        self.searchers['trailerQueue'] = trailerQueue

        #subtitle cron
        subtitleCronJob = startSubtitleCron(config, self.debug)
        self.threads['subtitle'] = subtitleCronJob
        self.searchers['subtitleQueue'] = subtitleQueue

        etaCron = startEtaCron(config, self.debug)
        self.threads['eta'] = etaCron
        self.searchers['etaQueue'] = etaQueue

        #renamer cron
        renamerCronJob = startRenamerCron(config, self.searchers, self.debug)
        self.threads['renamer'] = renamerCronJob

        #Movie RSS cron
        MovieRSSCronJob = startMovieRSSCron(config, self.searchers, self.debug)
        self.threads['MovieRSS'] = MovieRSSCronJob

        #Kinepolis RSS cron
        KinepolisRSSCronJob = startKinepolisRSSCron(config, self.searchers, self.debug)
        self.threads['KinepolisRSS'] = KinepolisRSSCronJob

        #Trakt cron
        TraktCronJob = startTraktCron(config, self.searchers, self.debug)
        self.threads['Trakt'] = TraktCronJob

        #IMDB Watchlist cron
        IMDBCronJob = startImdbWlCron(config, self.searchers, self.debug)
        self.threads['IMDBWl'] = IMDBCronJob

        #nzb cronjob
        yarrCronJob = startYarrCron(config, self.debug, yarrSearch)
        yarrCronJob.sabNzbd = sabNzbd(config)
        yarrCronJob.transmission = transmission(config)
        yarrCronJob.nzbGet = nzbGet(config)
        self.threads['yarr'] = yarrCronJob
Exemple #4
0
    def start(self):

        config = self.config

        log.info("Starting Cronjobs.")
        self.config = config

        #searchers
        yarrSearch = Searcher(config, self.debug);
        movieSearch = movieSearcher(config);
        self.searchers['yarr'] = yarrSearch
        self.searchers['movie'] = movieSearch

        #trailer cron
        trailerCronJob = startTrailerCron(config, self.debug)
        self.threads['trailer'] = trailerCronJob
        self.searchers['trailerQueue'] = trailerQueue

        #subtitle cron
        subtitleCronJob = startSubtitleCron(config, self.debug)
        self.threads['subtitle'] = subtitleCronJob
        self.searchers['subtitleQueue'] = subtitleQueue

        etaCron = startEtaCron(config, self.debug)
        self.threads['eta'] = etaCron
        self.searchers['etaQueue'] = etaQueue

        #renamer cron
        renamerCronJob = startRenamerCron(config, self.searchers, self.debug)
        self.threads['renamer'] = renamerCronJob

        #Movie RSS cron
        MovieRSSCronJob = startMovieRSSCron(config, self.searchers, self.debug)
        self.threads['MovieRSS'] = MovieRSSCronJob

        #Kinepolis RSS cron
        KinepolisRSSCronJob = startKinepolisRSSCron(config, self.searchers, self.debug)
        self.threads['KinepolisRSS'] = KinepolisRSSCronJob

        #Trakt cron
        TraktCronJob = startTraktCron(config, self.searchers, self.debug)
        self.threads['Trakt'] = TraktCronJob

        #nzb cronjob
        yarrCronJob = startYarrCron(config, self.debug, yarrSearch)
        yarrCronJob.sabNzbd = sabNzbd(config)
        yarrCronJob.transmission = transmission(config)
        yarrCronJob.nzbGet = nzbGet(config)
        self.threads['yarr'] = yarrCronJob