Fix / in playQueues; Update iphone-name

This commit is contained in:
Michael Shepanski 2015-06-08 22:19:20 -04:00
parent 1055917750
commit bfec0496ef
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ def example_003_list_all_clients(plex):
def example_004_play_avatar_on_iphone(plex): def example_004_play_avatar_on_iphone(plex):
""" Example 4: Play the Movie Avatar on my iPhone. """ """ Example 4: Play the Movie Avatar on my iPhone. """
avatar = plex.library.section('Movies').get('Avatar') avatar = plex.library.section('Movies').get('Avatar')
client = plex.client("Michael's iPhone") client = plex.client("iphone-mike")
client.playMedia(avatar) client.playMedia(avatar)

View file

@ -25,7 +25,7 @@ class PlayQueue(object):
def create(cls, server, video, shuffle=0, continuous=0): def create(cls, server, video, shuffle=0, continuous=0):
# NOTE: I have not yet figured out what __GID__ is below or where the proper value # NOTE: I have not yet figured out what __GID__ is below or where the proper value
# can be obtained. However, the good news is passing anything in seems to work. # can be obtained. However, the good news is passing anything in seems to work.
path = 'playQueues%s' % utils.joinArgs({ path = '/playQueues%s' % utils.joinArgs({
'uri': 'library://__GID__/item/%s' % video.key, 'uri': 'library://__GID__/item/%s' % video.key,
'key': video.key, 'key': video.key,
'type': 'video', 'type': 'video',