python-plexapi
plex-api
python-plexapi | plex-api | |
---|---|---|
57 | 13 | |
1,085 | 618 | |
- | - | |
9.1 | 0.0 | |
7 days ago | over 3 years ago | |
Python | ||
BSD 3-clause "New" or "Revised" License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
python-plexapi
-
Playlists need to be improved.
Oh shit! I never even bothered to look because I asked a long time ago and was given and emphatic no. It looks like there is a playlist class. So I'll have to play with that and see what it can do.
- Remove movie from Recently Added
-
Automating Plexamp: Play a random album from a collection (details in a comment)
I wanted a way to pick a random album from a collection and tell the Plexamp client connected to my speakers to play it. I wrote a detailed post about a simple way and a fancy way to do this using the unofficial Python Plex library.
- Issues using the API and python-PlexAPI
-
Any idea why actors are appearing in Plex twice but under different movies? I only have one library
It is the library agent change this guy was on the right track https://github.com/pkkid/python-plexapi/issues/534
- plex discover universal search by imdb/tvdb/tmdb ID
-
Refresh Metadata daily - Plex API
Sources: https://python-plexapi.readthedocs.io/en/latest/ https://github.com/pkkid/python-plexapi
-
Is there a scan feature like the way car radios work?
There's no in the box option for that, but you can easily make something that can do it with things like the python plex api. Get random movie, send play command with offset for some random point. Sleep some random amount of time. Send a stop command and repeat the previous steps.
-
Plex playlist content to watchlist in bulk
You should look into the python PlexAPI wrapper library. Here is an equivalent script using PlexAPI.
-
Network activity keeps PC Awake
I am not sure if there is an official way most people do this, but I think the best bet would be to use data directly from plex - https://python-plexapi.readthedocs.io/en/latest/modules/server.html#plexapi.server.PlexServer.sessions to loop through every so often and get a list of current sessions (currently playing media). Once that goes empty start a timer for shutdown. If a session starts again end the shutdown, you could even look at to see if something is "paused" and have a different shutdown time for paused vs nothing playing if you really wanted.
plex-api
-
CLI Help - Edit metadata for movie
No connection string necessary, you just have to open com.plexapp.plugins.library.db, which is in the 'Plug-in Support/Databases' folder inside your data directory. Though depending on the context of your original question, it may be easier to just use the web api. Based on the request the web app makes, it will be something like PUT [host]:[port]/library/sections/[section]/all?type=[type]&id=[metadata_id]&summary.value=[url encoded summary]&summary.locked=1&X-Plex-Token=[token]. Not sure if type is needed, but if it is, you can find the values here.
-
Custom Agents?
If you want to connect to the API then look for projects like python-plexAPI or the plex-api wiki maybe even the Plex-Meta-Manager can give you pointers on how to get metadata from the outside into plex because that is what it actually does.
-
Headless plex client on raspberry pi zero 2 with hardware buttons
using the undocumented api I was able to get a user id & token ( Plex Web API Overview ยท Arcanemagus/plex-api Wiki (github.com) )
-
I made Physical Plex Player Controller
I was able to utilize the HTTP Request component to send control commands to a plex player (macOS Plex Player) using the Plex API. This allows me to directly control the volume, playback and track with two momentary buttons (volume up and down) and a 3-way toggle switch (pause, play, next track). I've published my yaml file to github. The script in the yaml needs to be populated with the server IP address and the 'X-Plex-Target-Client-Identifier' which is the ID of the player being controlled. To find this ID, navigate to http://server_IP_address:32400/clients in the browser, look for the 'machineIdentifier' value of the player to be controlled. Copy that value to the script in ESPHome. Not every player can be controlled, the 'protocolCapabilities' value indicates to what extent each player can be controlled.
-
Share/exclude label
Where {section} is the library section, {type} is the media type, and {id} is the item's metadata id. The [ and ] also have to be urlencoded, so a full request might look something like this:
-
Can you program Plex Plugins yourself?
For example, the plex web API can show you which endpoints to hit to do certain things.
-
What are y'all's favorite things about using PLEX over other streaming platforms?
I like how you can use things like the web api and the python plex api to make things to do anything you can think of.
-
Any working google assistant methods for playing plex?
Are you capable of doing simpleish programming? If so, the there is always the google home API + the plex api and creating you're own skill to do it. If you're looking for something ready made then phlex is the only option I'm aware of on that front. The custom skill way is a good way to learn some basic programming and also how to create google/alexa skills if you have to go that route.
-
Preview of a Audiobook player I've been working on
Plex has a API https://github.com/Arcanemagus/plex-api/wiki/Plex-Web-API-Overview
-
Plex folks, any plans for enabling the ability to edit metadata on your mobile apps?
There's no official documentation, but yes. There is some unofficial documentation here, and as an example, the following would change the title (and lock the field) of the item with a metadata id of 365480 in the library with a section ID of 3:
What are some alternatives?
Tautulli - A Python based monitoring and tracking tool for Plex Media Server.
WebTools-NG - WebTools Next Generation for Plex
Tdarr - Tdarr - Distributed transcode automation using FFmpeg/HandBrake + Audio/Video library analytics + video health checking (Windows, macOS, Linux & Docker)
pasta - Audio & Subtitle Track Changer for Plex
Plex-scripts - Plex, the arr's and tautulli scripts coming from user requests
esphome-plex-controller
Kometa - Python script to update metadata information for items in plex as well as automatically build collections and playlists. The Wiki Documentation is linked below.
JBOPS - Just a Bunch Of Plex Scripts
plex-playlist-importer - A simple Mac/iOS/iPad app to create playlists from m3u directly to Plex Server
GoogleHomeKodi - Control kodi via Google Home / Assistant