Skip to content

Instantly share code, notes, and snippets.

View infernix's full-sized avatar

Gerben Meijer infernix

View GitHub Profile
@ghuntley
ghuntley / force-refresh-plex-library.py
Created January 6, 2014 08:41
plex media server library refresh all libraries.
#!/usr/bin/env python
import urllib
from xml.dom import minidom
host = 'localhost'
source_type = ['movie', 'show'] # Valid values: artist (for music), movie, show (for tv)
base_url = 'http://%s:32400/library/sections' % host
refresh_url = '%s/%%s/refresh?force=1' % base_url
try: