mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 11:43:13 +00:00
Fix readme
This commit is contained in:
parent
50af39c6f3
commit
6eab6f2812
1 changed files with 5 additions and 5 deletions
10
README.md
10
README.md
|
@ -32,7 +32,7 @@ the top left above your available libraries.
|
|||
|
||||
```python
|
||||
from plexapi.myplex import MyPlexAccount
|
||||
account = MyPlexAccount.signin('<USERNAME>', '<PASSWORD>')
|
||||
account = MyPlexAccount('<USERNAME>', '<PASSWORD>')
|
||||
plex = account.resource('<SERVERNAME>').connect() # returns a PlexServer instance
|
||||
```
|
||||
|
||||
|
@ -68,9 +68,9 @@ for client in plex.clients():
|
|||
```python
|
||||
# Example 4: Play the movie Cars on another client.
|
||||
# Note: Client must be on same network as server.
|
||||
avatar = plex.library.section('Movies').get('Cars')
|
||||
cars = plex.library.section('Movies').get('Cars')
|
||||
client = plex.client("Michael's iPhone")
|
||||
client.playMedia(avatar)
|
||||
client.playMedia(cars)
|
||||
```
|
||||
```python
|
||||
# Example 5: List all content with the word 'Game' in the title.
|
||||
|
@ -87,8 +87,8 @@ for movie in movies.search(None, director=director):
|
|||
```
|
||||
```python
|
||||
# Example 7: List files for the latest episode of The 100.
|
||||
thelastone = plex.library.section('TV Shows').get('The 100').episodes()[-1]
|
||||
for part in thelastone.iterParts():
|
||||
last_episode = plex.library.section('TV Shows').get('The 100').episodes()[-1]
|
||||
for part in last_episode.iterParts():
|
||||
print(part.file)
|
||||
```
|
||||
```python
|
||||
|
|
Loading…
Reference in a new issue