Giter Club home page Giter Club logo

Comments (8)

pkkid avatar pkkid commented on May 5, 2024

I think it's an oversight. Audio support is very new and your probably the first person to really dig in. I'll make it work tomorrow.

from python-plexapi.

beville avatar beville commented on May 5, 2024

Cool, thanks for doing all this. No need to rush on my account, I'm just playing around. :-)

I see now that the code is mostly video oriented. I was also hoping to get a client object to "playMedia()" on an audio playlist, but looks like that won't work as implemented. Something to keep in mind!

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

commit 1a67941
Author: Michael Shepanski [email protected]
Date: Tue Apr 12 22:47:46 2016 -0400
Ability to list all albums; Fix setting object values when not found (NA) and we know its the full object.

Added MusicSection.albums() to list them.

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

commit c75db1d
Author: Michael Shepanski [email protected]
Date: Tue Apr 12 22:55:45 2016 -0400
Fix broken utils.searchType()

Calling searchAlbums() now works as expected.

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

Some things that still need to be done here:

  • Create tests for audio playback.
  • Ability to play playlists (or convert a playlist to a playqueue).

from python-plexapi.

beville avatar beville commented on May 5, 2024

Changes look great!

For what it's worth, here are some code snippets that I got to work for playing playlist on client:

Create PlayQueue:

        path = "/playQueues"
        path += "?playlistID={}".format(playlist_id)
        path += "&shuffle=0&type=audio&includeChapters=1&includeRelated=1"    

Start playqueue on client, using response from above:

    playqueue_selected_metadata_item_id = playqueue[u'playQueueSelectedMetadataItemID'] 
    playqueue_id = playqueue[u'playQueueID'] 

    # Tell the client to play the playlist
    url = "http://{}:{}/player/playback/playMedia".format(CLIENT_IP,CLIENT_PORT)
    url += "?key=%2Flibrary%2Fmetadata%2F{}".format(playqueue_selected_metadata_item_id)
    url += "&offset=0"
    #url += "&X-Plex-Client-Identifier={}".format(CLIENT_ID)
    url += "&machineIdentifier={}".format(SERVER_ID)
    url += "&address={}".format(server_ip)
    url += "&port={}".format(server_port)
    url += "&protocol=http"
    url += "&containerKey=%2FplayQueues%2F{}%3Fown%3D1%26window%3D200".format(playqueue_id)
    url += "&commandID=2"

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

Awesome, I should be able to get this in tonight. You're doing all the hard research, I love it!

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

commit 5701af7
Author: Michael Shepanski [email protected]
Date: Wed Apr 13 22:36:12 2016 -0400
Ability to play playlists

from python-plexapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.