Skip to content

Instantly share code, notes, and snippets.

View acouvreur's full-sized avatar
😽
Keep it simple, stupid!

Alexis Couvreur acouvreur

😽
Keep it simple, stupid!
View GitHub Profile
@acouvreur
acouvreur / sync-unmonitored.sh
Last active May 21, 2024 14:29
Sync deleted files from Radarr/Sonarr
#!/bin/bash
# Find existing files in download/complete that are not in movies or tvshows.
export DOWNLOAD_FOLDER=path/to/downloads
export MOVIES_FOLDER=path/to/movies
export TVSHOWS_FOLDER=path/to/tvshows
findExistingFile() {
file=$(find $MOVIES_FOLDER/ $TVSHOWS_FOLDER/ -samefile "$1")