Giter Club home page Giter Club logo

Comments (11)

havardgulldahl avatar havardgulldahl commented on May 5, 2024

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.

pkkid avatar pkkid commented on May 5, 2024

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.

tomduijf avatar tomduijf commented on May 5, 2024

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.

havardgulldahl avatar havardgulldahl commented on May 5, 2024

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.

pkkid avatar pkkid commented on May 5, 2024

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.

pkkid avatar pkkid commented on May 5, 2024

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.

pkkid avatar pkkid commented on May 5, 2024

@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.

pkkid avatar pkkid commented on May 5, 2024

Sorry nevermind. VLC was wigging out because I didn't have quotes around that massive URL.

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

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.

Bart274 avatar Bart274 commented on May 5, 2024

so can we now see what music someone is playing etc?
can this be released on pypi?

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

Still a few weeks away from being updated on pypi.

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.