Skip to content

Instantly share code, notes, and snippets.

# USE AT YOUR OWN RISK!!!!
#
# Requires eyed3 and plexapi libraries, written & tested in python 3.9
from plexapi.myplex import MyPlexAccount
import eyed3
LIB = 'INSERT LIBRARY NAME'
# Counters
insync = 0
Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ReleaseId | select-string "ReleaseID" | %{$_ -replace('\D+(\d+)','$1')}