quickmic 1703 Posted January 31, 2022 Posted January 31, 2022 (edited) Is it possible to query Songs/Audio where no Album is assigned? I tried Itemservice with "Albums" parameter and data "" or None etc. Not working... Is there an option like hasAlbum or a filter available doing this job? Reason: I query music in a staggered manner. MusicArtist -> MusicAlbum -> Audio First selection should include MusicArtist Items, second MusicAlbum by ArtistId AND NO ALBUM ASSIGNED Audio by ArtistId, third Audio by AlbumId and ArtistId Edited January 31, 2022 by quickmic
Luke 42077 Posted January 31, 2022 Posted January 31, 2022 Hi, it's not currently possible. I could add it for you, but why not just pull down the audio items instead, and then fetch the albums based on their album ids?
quickmic 1703 Posted January 31, 2022 Author Posted January 31, 2022 1 hour ago, Luke said: Hi, it's not currently possible. I could add it for you, but why not just pull down the audio items instead, and then fetch the albums based on their album ids? Good Idea, I'll try. I think it will not generate to much overhead. Query should be snappy 1
quickmic 1703 Posted February 1, 2022 Author Posted February 1, 2022 That worked, thanks for the hint. Musicvideos MusicAlbum query seems having an issue. query like this: params = { 'ParentId': Parent_id, 'ArtistIds': Artist_id, 'IncludeItemTypes': Media, 'IsMissing': False, 'Recursive': True, 'Fields': EmbyFields[Media] } Â IncludeItemTypes = MusicArtist works for both. Music content and MusicVideos content. IncludeItemTypes = MusicAlbum works only for Music content. Â ParentId is Library ID URL like "Users/%s/Items"
Luke 42077 Posted February 1, 2022 Posted February 1, 2022 Currently music videos cannot be assigned to albums, only artists. 1
quickmic 1703 Posted February 1, 2022 Author Posted February 1, 2022 2 minutes ago, Luke said: Currently music videos cannot be assigned to albums, only artists. Yep I see. Album Info is available but not assigned/linked. Â Â 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now