mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-26 13:40:22 +00:00
py3
This commit is contained in:
parent
8c0abf0b36
commit
a56525742c
1 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ def example_003_list_all_clients(plex):
|
||||||
for client in plex.clients():
|
for client in plex.clients():
|
||||||
print(client.name)
|
print(client.name)
|
||||||
else:
|
else:
|
||||||
print 'No clients'
|
print('No clients')
|
||||||
|
|
||||||
|
|
||||||
def example_004_play_avatar_on_iphone(plex):
|
def example_004_play_avatar_on_iphone(plex):
|
||||||
|
@ -68,8 +68,8 @@ def example_007_list_files(plex):
|
||||||
def example_008_get_stream_url(plex):
|
def example_008_get_stream_url(plex):
|
||||||
""" Example 8: Get a URL you can open in VLC, MPV, etc. """
|
""" Example 8: Get a URL you can open in VLC, MPV, etc. """
|
||||||
jurassic_park = plex.library.section('Movies').get('Jurassic Park')
|
jurassic_park = plex.library.section('Movies').get('Jurassic Park')
|
||||||
print 'Try running the following command:'
|
print('Try running the following command:')
|
||||||
print 'vlc "%s"' % jurassic_park.getStreamUrl(videoResolution='800x600')
|
print('vlc "%s"' % jurassic_park.getStreamUrl(videoResolution='800x600'))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue