Comments (6)
I wonder how can you mix two servers in same request
For single server it's:
items?uri=server://<server_id>/com.plexapp.plugins.library/library/metadata/<key1>,<key2>
repeat uri?
items?uri=server://<server1_id>/com.plexapp.plugins.library/library/metadata/<key1>,<key2>&uri=server://<server2_id>/com.plexapp.plugins.library/library/metadata/<key3>,<key4>
from python-plexapi.
My guess is Plex won't allow adding items from different servers in the same API call. You probably need to add from one server at a time.
from python-plexapi.
With multiple calls, how can I ensure the order? Seems to become overly complex if need to split to multiple calls.
from python-plexapi.
Could do move, so every "other server" items need to be moved:
in above example I moved foreign server entry.
I foresee already problem with their implementation if they use key (and no server) as primary key in the playlist, i.e collision of same key value from different servers.
lucky guess, maybe bulk move also works:
from python-plexapi.
I don't see any way to add items from multiple servers at the same time in Plex Web. The only way I can find to select items from multiple servers is using different hubs pinned on the homepage, but the "Add to Playlist" button disappears as soon as you multi-select from different servers. I really don't think Plex allows this in one single API call.
You would need to make two separate API calls:
PUT http://localhost:32314/playlists/<playlist_id>/items?uri=server://<server1_id>/com.plexapp.plugins.library/library/metadata/<key1>,<key2>
PUT http://localhost:32314/playlists/<playlist_id>/items?uri=server://<server2_id>/com.plexapp.plugins.library/library/metadata/<key3>,<key4>
Which results in the order <key1>, <key2>, <key3>, <key4>
.
If you want <key1>, <key3>, <key2>, <key4>
, then you would need to make 4 API calls.
We could handle multiple server item ordering automatically internally in the PlexAPI library (i.e. make the separate API calls for the user).
from python-plexapi.
Try #1411
from python-plexapi.
Related Issues (20)
- 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
- Using the .get function to differentiate between movies with the same title? HOT 1
- Structures for AlertListener messages
- Get watch history for non-owner user HOT 4
- Using `maxresults` in fetchItems() tramples over results
- Problems with DELETE USER HOT 7
- Update plex.client 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.