Couchpotato

From RARForge
Revision as of 00:39, 5 March 2013 by Robertr (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.



Automation - Auto Adding Movies

LOG when a TITLE is added - from where?

  • TO DO - i think this is the file...
couchpotato/core/plugins/automation/main.py

Log IMDB minimal settings

  • When checking IMDB minimal, lets log it to see what we found
/opt/couchpotatoserver/couchpotato/core/providers/automation/
def isMinimalMovie(self, movie):
        if not movie.get('rating'):
            return False

        if movie['rating'] and movie['rating'].get('imdb'):
            movie['votes'] = movie['rating']['imdb'][1]
            movie['rating'] = movie['rating']['imdb'][0]

        for minimal_type in ['year', 'rating', 'votes']:
            type_value = movie.get(minimal_type, 0)
            type_min = self.getMinimal(minimal_type)
            if type_value < type_min:
                log.info('%s too low for %s, need %s has %s', (minimal_type, movie['imdb'], type_min, type_value))
                return False
                ## rarforge
                log.info('%s %s meets requirements for %s, need %s has %s', (minimal_type, movie['original_title'], movie['imdb'], type_min, type_value))
        return True

Rotten Tomatoes

By Default, adding movies only uses the Tomato Meter -- I don't like a lot of movies that score high.
I'd prefer to use the standard IMDB rating, which also sucks (less)\
/opt/couchpotatoserver/couchpotato/core/providers/automation/rottentomatoes/main.py
 ....
 ## do not use tomato meter                                                                                                                                                                                        
 #                if rating < tryInt(self.conf('tomatometer_percent')):                                                                                                                                            
 #                    log.info2('%s seems to be rotten...' % name)                                                                                                                                                 
 #                else:                                                                                                                                                                                            
                log.info2('Found %s fresh enough movies, checking on IMDB: %s' % (rating, name))
                year = datetime.datetime.now().strftime("%Y")
                imdb = self.search(name, year)
                if imdb:
                    if self.isMinimalMovie(imdb):
                        log.info2('IMDB rating is enough for %s, enqueuing: %s' % (name))
                        movies.append(imdb['imdb'])

        return movies