This script acts in place of inotify when using Google Drive and rclone as a backend for Jellyfin. It watches the Drive API and will trigger a library scan on changes
Currently only works when adding new files
Requires Python 3.6 or newer
- Download repo
- Install Python dependencies
pip install -r requirements.txt
- Edit
config.json
- Follow step 1 of Google's getting started page
- Save the credentials.json file inside the project directory
python scanner.py
- to run the script
check_interval
- minutes between GDrive scansapi_key
- Jellyfin API Key (Admin Dashboard -> Advanced -> API Keys)jellyfin_server
- URL of the Jellyfin server (http://localhost:8096
)retries
- number of tries for Jellyfin api before giving up