mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
Update README.md
This commit is contained in:
parent
aa37f1b434
commit
5057fce4b6
1 changed files with 11 additions and 9 deletions
20
README.md
20
README.md
|
@ -16,15 +16,7 @@ Python bindings for the Plex API.
|
|||
|
||||
#### Getting a PlexServer Instance ####
|
||||
|
||||
There are three types of authentication. If running the PlexAPI on the same
|
||||
network as the Plex Server (and you are not using Plex Users), you can
|
||||
authenticate without a username and password. Getting a PlexServer
|
||||
instance is as easy as the following:
|
||||
|
||||
```python
|
||||
from plexapi.server import PlexServer
|
||||
plex = PlexServer() # Defaults to localhost:32400
|
||||
```
|
||||
There are three types of authentication.
|
||||
|
||||
If you are running on a separate network or using Plex Users you can log
|
||||
into MyPlex to get a PlexServer instance. An example of this is below. NOTE:
|
||||
|
@ -49,6 +41,16 @@ token = '2ffLuB84dqLswk9skLos'
|
|||
plex = PlexServer(baseurl, token)
|
||||
```
|
||||
|
||||
`NO LONGER WORKING ON LATEST VERSION OF PLEX` (see bug #68) If running the PlexAPI
|
||||
on the same network as the Plex Server (and you are not using Plex Users), you can
|
||||
authenticate without a username and password. Getting a PlexServer instance is as
|
||||
easy as the following:
|
||||
|
||||
```python
|
||||
from plexapi.server import PlexServer
|
||||
plex = PlexServer() # Defaults to localhost:32400
|
||||
```
|
||||
|
||||
|
||||
#### Usage Examples ####
|
||||
|
||||
|
|
Loading…
Reference in a new issue