Skip to content

Script to periodically clean media files from disk

License

Notifications You must be signed in to change notification settings

reinierjh/series-cleanup

 
 

Repository files navigation

series-cleanup

GitHub last commit GitHub Workflow Status Go Report Card GitHub release (latest SemVer)

This app searches the specified folders for TV shows, and removes them if they are marked as watched on Trakt.tv.

Usage

This app requires a Trakt API app to be created.

Command line options can be specified when running the app:

Usage of ./series-cleanup:
  -c string
    	Specify config file to use (default "settings.json")
  -d string
    	Specify folder to store data (default "/data")

Configuration

Create a copy of examples/settings.json and modify the settings to your preferences. Make sure to specify the Trakt Client ID and Client Secret according to your Trakt API app values.

The Trakt Client ID and Client Secret can also be provided as environment variables instead of putting them in the configuration file:

  • TRAKT_CLIENT_ID
  • TRAKT_CLIENT_SECRET

Docker

A Docker image can be found here: GitHub Container Registry. This image expects the configuration file to be available at /data/settings.json.

About

Script to periodically clean media files from disk

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 97.5%
  • Dockerfile 2.5%