From 6eab6f2812fbb892916e23ca46869aa2bd4fcc9b Mon Sep 17 00:00:00 2001 From: Michael Shepanski Date: Mon, 20 Feb 2017 02:14:25 -0500 Subject: [PATCH] Fix readme --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5b8f5bdc..56b33f7b 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ the top left above your available libraries. ```python from plexapi.myplex import MyPlexAccount -account = MyPlexAccount.signin('', '') +account = MyPlexAccount('', '') plex = account.resource('').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