コード例 #1
0
ファイル: rescan_photos.py プロジェクト: zdqf/photonix
    def rescan_photos(self, paths):
        missing = missing_system_dependencies([
            'exiftool',
        ])
        if missing:
            print('Missing dependencies: {}'.format(missing))
            exit(1)

        for path in paths:
            import_photos_in_place(path)
コード例 #2
0
ファイル: models.py プロジェクト: HendrikRoth/photonix
    def rescan(self):
        from photonix.photos.utils.organise import import_photos_in_place

        if self.type == 'St' and self.backend_type == 'Lo':
            import_photos_in_place(self)
コード例 #3
0
ファイル: consumers.py プロジェクト: zdqf/photonix
def rescan_photos(message):
    paths = [item['PATH'] for item in settings.PHOTO_OUTPUT_DIRS]
    for path in paths:
        import_photos_in_place(path)