Comments (11)
Hey guys. Just wanted to let you know that I've started dabbling with music support in my tree https://github.com/havardgulldahl/python-plexapi
I started out with just duplicating the video pipe in video.py
and server.py
. As of now, my changes don't interfere with anything, but I suggest that down the line we have to do some changes to merge video and audio handlnig.
If you are interested, @mjs7231, I'll submit a pull request to get the integration going. And, of course, please tell me if you want something done differently.
from python-plexapi.
Sweet, from an initial glance it looks like it a great addition. Send the pull request and I can look at the diff a bit better. So far this project has been pretty lonely with contributors, so its also great to have such a contribution. Thanks.
I don't know much about Plex audio handling yet. What parts do you think need to be merged? -- In my initial thoughts it seems like a better idea to me to keep them separated. I could easily imagine a whole bunch of small paper-cut like differences between video/audio turning messy real quick if we merge without be too careful.
from python-plexapi.
Plex handles has different library functions / contexts (artist, album, etc) for music like movies and series (show, season, etc).
python-plexapi integrates nicely on the library specific stuff for movies and series, makes sense to also do this for music.
from python-plexapi.
Please take a look at #41 and add your comments.
There is absolutely room for audio support integrated, the Plex API has this nicely separated.
What I'm talking about is merging code paths and refactoring to avoid duplicated code. In #41, audio.py
is almost identical to video.py
, duplicating a lot of stuff. Take a look, and you'll see :)
from python-plexapi.
Just an update here. havardgulldahl code from #41 has been merged, but there is still a bit more work to do before I would say the API is settled down. Specifically, I want to unwind the common bits of the Audio and Video classes into a common location to share what we can.
from python-plexapi.
Closing this one out.
commit a999df8
Author: Michael Shepanski [email protected]
Date: Mon Mar 21 23:12:12 2016 -0400
Audio support complete; Added more audio tests; renamed is_watched to isWatched
from python-plexapi.
@havardgulldahl Were you able to get the stream URL working for audio, or was it basically a port of the existing code?
from python-plexapi.
Sorry nevermind. VLC was wigging out because I didn't have quotes around that massive URL.
from python-plexapi.
Bah, I'm noisy today. I'm still having trouble getting this working for Albums and Playlists. It makes sense to be, but seems like what should be done is we loop through each item in the album or playlist and get the stream urls individually. But I'm a bit thrown off because it seems you put work into adding the getStreamURL functions to Album and Playlist, so I imagine they worked at some capacity for you?
ERROR - TranscodeUniversalRequest: unexpected number of media items: 0
Mar 22, 2016 23:26:13 [0x7f71d67ff700] DEBUG - Completed: [127.0.0.1:53173] GET /video/:/transcode/universal/start.m3u8?path=%2Fplaylists%2F37119&mediaIndex=0 (10 live) 5ms 228 bytes 400
from python-plexapi.
so can we now see what music someone is playing etc?
can this be released on pypi?
from python-plexapi.
Still a few weeks away from being updated on pypi.
from python-plexapi.
Related Issues (20)
- 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
- Bad Request response when adding library with default language
- Issues creating `PlexClient` instances from `PlexServer` sessions in 4.15.8 HOT 1
- feat: Endpoint for computing sonic adventure
- Add View History Manually HOT 2
- Streams in MediaParts empty (reload() has no effect)
- `totalSize` of MediaContainer
- createPlaylist does not guard smart=True and non-empty items HOT 2
- "Invalid library sectionID: None" after PlexPartialObject.reload() HOT 5
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.