-
Notifications
You must be signed in to change notification settings - Fork 200
Library section id for all #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library section id for all #292
Conversation
|
Why Is this needed? |
|
@Hellowlol there are photos in a library which not belong to any albums (and probably albums are not a thing anymore), and for those photos you can't get a At least |
|
Problem occurs at least on with PMS v1.13.5.5332. Of course there is a huge chance that I'm doing anything wrong, but I really hope that it's not the case this time :) |
|
Here is a short piece of code (from py.test) which fails with exception about unknown library: def test_playlist_photos(plex, photos):
items = photos.all()
assert plex.createPlaylist('Photos', items) |
|
Im gonna put this on hold for a while, i want to see if we can do this another way. This touches parts of code that needs to be fast as its used pretty much everywhere. Who creates a playlist for images anyway? :P |
Yep, I really hope we find a better way :) But anyway — when we receiving a MediaContainer IMO we should parse all of its attributes, not just processing internal items and abandoning all the meta. E.g. for <MediaContainer allowSync="1" art="/:/resources/photo-fanart.jpg" identifier="com.plexapp.plugins.library" librarySectionID="4" librarySectionTitle="Photos" librarySectionUUID="2a550866-7060-4612-9f64-2b7b4e0a82b7" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1534566129" nocache="1" size="10" thumb="/:/resources/photo.png" title1="Photos" title2="All Photos" viewGroup="photo" viewMode="131633">And at least 3 attributes are pretty much useful for me:
In latest version of Plex "playlist for images" used as albums :( And also you can't sent selection of photos without library ID to sync. @Hellowlol I've made another try on this, this time it doesn't have this huge side-effect, please take a look on 5d9df1a. |
|
is this still needed? |
|
Yep. Without this one you can't properly work (create playlists, set up mobile sync) with photos which stored outside of any albums. |
|
Still dont like it but lets go for it. |
It's a quite controversial change, but for now I have no idea how to do this thing better. Basically
librarySectionIDfield should be added automatically for any item if the field exists in metadata, and that's what I'm trying to achieve here.