Skip to content

Commit ae3e90e

Browse files
authored
Update myplex.py
1 parent 577c68a commit ae3e90e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

plexapi/myplex.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,19 +362,15 @@ def webhooks(self):
362362
return self._webhooks
363363

364364
def optOut(self, playback=None, library=None):
365-
"""Opt in or out of sharing stuff with plex. See
366-
367-
https://www.plex.tv/about/privacy-legal/
368-
365+
""" Opt in or out of sharing stuff with plex.
366+
See: https://www.plex.tv/about/privacy-legal/
369367
"""
370368
params = {}
371369
if playback is not None:
372370
params['optOutPlayback'] = int(playback)
373371
if library is not None:
374372
params['optOutLibraryStats'] = int(library)
375-
376373
url = 'https://plex.tv/api/v2/user/privacy'
377-
378374
return self.query(url, method=self._session.put, params=params)
379375

380376

@@ -477,7 +473,6 @@ def sections(self):
477473
for section in data.iter('Section'):
478474
if section:
479475
sections.append(Section(self, section, url))
480-
481476
return sections
482477

483478

0 commit comments

Comments
 (0)