Jump to content

Query audio where Album is empty?


Recommended Posts

quickmic
Posted (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 by quickmic
Posted

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
Posted
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 😉

  • Thanks 1
quickmic
Posted

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"

Posted

Currently music videos cannot be assigned to albums, only artists.

  • Thanks 1
quickmic
Posted
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.

 

 

musicvideo1.png

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...