Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from plexapi.server import PlexServer
- baseurl = 'http://192.168.1.62:32400'
- token = 'yourplextoken'
- plex = PlexServer(baseurl, token)
- show_section = plex.library.section('TV Shows')
- added = show_section.search(sort='titleSort')
- # Add all Disney Shows to Disney.
- # 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 == 'Netflix':
- show.addCollection('Netflix')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement