Exemplo n.º 1
0
# ##
if __name__ == '__main__':
    # Parse arguments from command line
    parser = argparse.ArgumentParser(
        description='TranslationMatcher is a python app to ' +
        'reconcile different translations of the same movie in ' +
        'a MovieDiversity db.')
    parser.add_argument('--dbfile',
                        '-db',
                        required=True,
                        help='The sqlite db file to be used.')
    parser.add_argument(
        '--logLevel',
        '-log',
        required=False,
        choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
        help='The level of output for logging. Defaults to INFO.')

    args = parser.parse_args()

    # Init the logging system
    movieLogger.MovieLoggger().initLogger(level=args.logLevel)

    T = TranslationMatcher(dbfile=args.dbfile)

    T.logger.info("Populating translation table in : %s", args.dbfile)

    T.reconcileAllTitles()

    T.logger.info("End run.")
Exemplo n.º 2
0
 def tearDown(self):
     # for cleaning, no need to stay at DEBUG level
     movieLogger.MovieLoggger().resetLoggingLevel('INFO')
     self.util.cleanUpTestData()
     movieLogger.MovieLoggger().resetLoggingLevel('DEBUG')
     unittest.TestCase.tearDown(self)
Exemplo n.º 3
0
 def setUpClass(cls):
     super(testSource, cls).setUpClass()
     movieLogger.MovieLoggger().initLogger('DEBUG')
Exemplo n.º 4
0
 def setUpClass(cls):
     super(testPropertiesReader, cls).setUpClass()
     movieLogger.MovieLoggger().initLogger('INFO')
Exemplo n.º 5
0
 def setUpClass(cls):
     super(testMovieDbClasses, cls).setUpClass()
     movieLogger.MovieLoggger().initLogger('DEBUG')
Exemplo n.º 6
0
 def setUpClass(cls):
     super(testTimdb, cls).setUpClass()
     movieLogger.MovieLoggger().initLogger('INFO')