Jump to content

Alexa - Better Album Support (?itemtype Album rather than audio?)


ginjaninja

Recommended Posts

ginjaninja

From reading the wiki and now looking at the debug log...I think albums could be better supported.

Eg "Play album Heroes by David Bowie", skill currently searches for itemtype Audio rather than Album.

2024-01-02 15:58:26.066 Debug Server: http/1.1 GET https://‌‍‍XXX.XXX.XXX:8920/emby/Users/XXXXXXXXXXXXXXXXXXXX/Items?SortBy=Album%2CParentIndexNumber%2CIndexNumber&IncludeItemTypes=Audio&Recursive=true&Artists=David%20bowie&Albums=heroes. UserAgent: node-fetch

Emby plays songs where "Heroes" in Album string string and the track has David Bowie in Artist..(which isnt what i asked for) ...

to spell it out  when someone is giving this command i think they are asking for Albums with "Heroes" in the title and David Bowie in Albumartist where a closer match would appear first eg "Heroes" (Levenshtein distance 2?) would be a better match than "Never meet your heroes" (Levenshtein distance 16? - if such an album existed).

IncludeItemsTypes=Album seems to yield the right result according to swagger....in that the album object is returned....?the skill might need an extra function to expand the members of a returned [album] object.?

 

Link to comment
Share on other sites

ginjaninja
Posted (edited)

from alexa command history

play album heroes by david bowie on Emby Theatre

Hi @Luke, its not on the supported command list on the wiki but there is some support i assume because it sets Field Albums="Heroes" in the query

 

edit on closer inspection theres nothing  intrinsincally wrong with item type audio perhaps its more about setting artist type to albumartist when searching for an album.

https://X.X.X:8920/emby/Items?ArtistType=Albumartist&Recursive=true&IncludeItemTypes=audio&SortBy=Album&Artists=David%20Bowie&Albums=Heroes

 

Edited by ginjaninja
Link to comment
Share on other sites

ginjaninja

Further testing i think is showing that including more keywords ie Album and Artist makes Emby Album parsing much more reliable.

eg

"Play Album X by Y"

will frequently set the album search term to 'X by Y'

but

"Play Album X by Artist Y"

 sets the album and artist search terms much more reliably.

 

Link to comment
Share on other sites

  • 3 months later...

Hi, we'll take a look at this. Thanks for reporting.

Link to comment
Share on other sites

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...