mirror of
https://github.com/blacktwin/JBOPS.git
synced 2025-12-11 19:37:18 +00:00
19 lines
314 B
Python
19 lines
314 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""Delete all playlists from Plex.
|
|
|
|
|
|
"""
|
|
from __future__ import unicode_literals
|
|
|
|
from plexapi.server import PlexServer
|
|
|
|
baseurl = 'http://localhost:32400'
|
|
token = 'XXXXXXXX'
|
|
plex = PlexServer(baseurl, token)
|
|
|
|
|
|
for playlist in plex.playlists():
|
|
playlist.delete()
|