Skip to content

Instantly share code, notes, and snippets.

View sircharlo's full-sized avatar

Charles Olivier Savignac sircharlo

  • Montreal, Canada
View GitHub Profile
@sircharlo
sircharlo / immich-orphan-cleaner.py
Last active May 3, 2024 01:36
I modified @T-One 's excellent Gist somewhat for my purposes: I had alot of orphaned files in my Immich instance! I was getting impatient and wanted to see progress and ETA. Here it is in case anyone is impatient like me lol; all credit goes to @T-One though. Original Gist: https://gist.github.com/T-One/c857005e58286149914ad38f24a891e1
#!/usr/bin/env python3
# Note: you might need to run "pip install halo tabulate tqdm" if these dependencies are missing on your machine
import argparse
import json
import requests
from datetime import datetime
from halo import Halo