#!/bin/bash
set -e

expire_days=14

function cleanup {
    path="/data/bililive-recorder/$1/"
    if [ -d $path ]; then
        find "$path" -mtime "+$expire_days" -delete
    fi
}

cleanup "10920814-猫枝荔喵"
cleanup "24797892-太极球乐"

