From RARForge
Jump to navigation Jump to search

Automation - Auto Adding Movies[edit]

LOG when a TITLE is added - from where?[edit]

  • TO DO - i think this is the file...

Log IMDB minimal settings[edit]

  • When checking IMDB minimal, lets log it to see what we found
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:
      '%s too low for %s, need %s has %s', (minimal_type, movie['imdb'], type_min, type_value))
                return False
                ## rarforge
      '%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[edit]

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)\
 ## 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 ="%Y")
                imdb =, year)
                if imdb:
                    if self.isMinimalMovie(imdb):
                        log.info2('IMDB rating is enough for %s, enqueuing: %s' % (name))

        return movies