adamgot / python-plexlibrary

Create and maintain dynamic Plex libraries based on recipes.
BSD 3-Clause "New" or "Revised" License
203 stars 40 forks source link

Fix bug when sharing with other users #92

Closed nwithan8 closed 4 years ago

nwithan8 commented 4 years ago

If you have a Plex Friend that does not have access to your server (i.e. you only have access to theirs), then getting a server instance for them to add a playlist would fail with a 401. Code now checks to see if a user has access to your server by looking for your machine identifier in their list of servers.

pep8speaks commented 4 years ago

Hello @nwithan8! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 42:1: W293 blank line contains whitespace Line 51:80: E501 line too long (110 > 79 characters) Line 74:80: E501 line too long (90 > 79 characters) Line 76:80: E501 line too long (82 > 79 characters) Line 104:80: E501 line too long (85 > 79 characters) Line 106:80: E501 line too long (82 > 79 characters) Line 130:80: E501 line too long (90 > 79 characters) Line 132:80: E501 line too long (82 > 79 characters) Line 163:80: E501 line too long (96 > 79 characters) Line 165:80: E501 line too long (86 > 79 characters)

Comment last updated at 2020-08-22 20:09:58 UTC