Skip to content

Instantly share code, notes, and snippets.

@brimur
brimur / preCachePlexOnDeckEpiosodes.py
Last active May 29, 2023 18:37
Cache unwatched On Deck items in Plex using rclone
#######################################
# This python script should be run
# as a cron job every 6 hours to
# cache On Deck episodes.
########################################
import os
import psutil
from subprocess import check_call
from itertools import chain
@brimur
brimur / preCachePlexEpisode.py
Last active September 21, 2024 07:26
Python script to cache the next episode of a TV show playing in Plex using rclone
#######################################
# This python script should be run
# as a cron job every 15 minutes to
# cache the next episode of a currently
# playing TV show.
########################################
import requests
import os
import psutil