Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from plexapi.server import PlexServer
- baseurl = 'http://192.168.1.2:32400'
- token = 'xxxplextokenherexxx'
- plex = PlexServer(baseurl, token)
- show_section = plex.library.section('TV Shows')
- added = show_section.search(sort='titleSort')
- # Add all Showtime shows to Showtime Collection.
- # found here https://www.reddit.com/r/PleX/comments/fauq6q/automatically_add_all_your_disney_films_to_a/
- for show in added:
- print('%s (%s)' % (show.title, show.studio))
- if show.studio is None:
- pass
- elif show.studio == 'Showtime':
- show.addCollection('Showtime')
Add Comment
Please, Sign In to add comment