Esempio n. 1
0
    def import_photos(self, paths):
        missing = missing_system_dependencies(['exiftool', ])
        if missing:
            print('Missing dependencies: {}'.format(missing))
            exit(1)

        for path in paths:
            import_photos_from_dir(path)
Esempio n. 2
0
    def rescan_photos(self, paths):
        missing = missing_system_dependencies(['exiftool', ])
        if missing:
            print('Missing dependencies: {}'.format(missing))
            exit(1)

        rescan_photo_libraries(paths)
        print('Rescan complete')
Esempio n. 3
0
    def rescan_photos(self, paths):
        missing = missing_system_dependencies(['exiftool', ])
        if missing:
            logger.critical(f'Missing dependencies: {missing}')
            exit(1)

        rescan_photo_libraries(paths)
        logger.info('Rescan complete')