Comments (8)
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.
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.
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.
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.
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.
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.
Awesome, I should be able to get this in tonight. You're doing all the hard research, I love it!
from python-plexapi.
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)
- 4.15.1 breaks setSelectedSubtitleStream due to missing arg (Quick fix!)
- PlexHistory.source() returns Tag class if file has been deleted
- Third-party sign in
- `SmartFilterMixin._parseFilters` algorithm fails when multi-level filters are to be parsed
- Create a Contributing guide for the project HOT 1
- Filter parsing returns unknown keys `group` and `having`
- Code Improvement: Fix class `Playable`
- Code Improvement: Organize Project Structure
- Unable to connect to a Plex HTPC client HOT 3
- Add Type Hints to Improve Codebase Readability and Maintainability HOT 1
- Show and Season from the video module use wrong key to get subtitleLanguage attribute
- Add support for track genres in music libraries HOT 1
- feat: python class for available filters HOT 3
- Add support for Plex Profile Watch History and Ratings
- Library section lookup clobbered when multiple libraries have the same title
- editAlbum Missing ... HOT 1
- Unable to find Libraries after using PlexApi based python script. HOT 5
- locations is empty when casting to dict HOT 2
- Add 'merge' method for music albums
- Ability to Modify MovieHistory & EpisodeHistory details HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-plexapi.