rosskouk / asknavidrome

An Alexa skill to allow streaming of music from Subsonic API compatible media servers on Amazon Echo devices.
https://rosskouk.github.io/asknavidrome
MIT License
48 stars 7 forks source link

Issues with playlists #37

Open jagauthier opened 2 months ago

jagauthier commented 2 months ago

I'm hoping someone can help me out. I'm tearing my hair out trying to get playlists to work.

I have these playlists defined in navidrome: image

Here's what I defined on the skill (along with the default ones)

image

Going down the line from the web devlopment interface: "ask navi sonic play the playlist ton"

2024-04-09 17:22:42,854 - root - DEBUG - Request received: {'dialog_state': None,
 'intent': {'confirmation_status': 'NONE',
            'name': 'NaviSonicPlayPlaylist',
            'slots': {'playlist': {'confirmation_status': 'NONE',
                                   'name': 'playlist',
                                   'resolutions': None,
                                   'slot_value': None,
                                   'value': None}}},
 'locale': 'en-US',
 'object_type': 'IntentRequest',
 'request_id': 'amzn1.echo-api.request.39491dfc-7b60-41b8-b8f7-6112d4b4a875',
 'timestamp': datetime.datetime(2024, 4, 9, 17, 22, 42, tzinfo=tzlocal())}
2024-04-09 17:22:42,854 - root - DEBUG - In NaviSonicPlayPlaylist
2024-04-09 17:22:42,854 - root - DEBUG - In GeneralExceptionHandler
2024-04-09 17:22:42,855 - root - ERROR - General Exception: 'NoneType' object has no attribute 'value'
2024-04-09 17:22:42,855 - root - ERROR - Request Type Was: IntentRequest
2024-04-09 17:22:42,855 - root - ERROR - Intent Name Was: NaviSonicPlayPlaylist

"ask navi sonic play the playlist megadeth" Same error as above.

"ask navi sonic play the playlist a. c. d. c." (I typed AC/DC, it was converted to the above)

Looked for an album instead of playlist?

2024-04-09 17:25:21,261 - root - DEBUG - Response sent: {'api_response': None,
 'can_fulfill_intent': None,
 'card': None,
 'directives': None,
 'experimentation': None,
 'output_speech': {'object_type': 'SSML',
                   'play_behavior': None,
                   'ssml': "<speak>I couldn't find the album ACDC in the "
                           'collection.</speak>'},
 'reprompt': {'directives': None,
              'output_speech': {'object_type': 'SSML',
                                'play_behavior': None,
                                'ssml': "<speak>I couldn't find the album ACDC "
                                        'in the collection.</speak>'}},
 'should_end_session': False}

"ask navi sonic play the playlist progressive metal" This seems to really break things. No JSON response on the server. image

ask navi sonic play the playlist wheel

2024-04-09 17:28:12,142 - root - DEBUG - Request received: {'dialog_state': None,
 'intent': {'confirmation_status': 'NONE',
            'name': 'AMAZON.FallbackIntent',
            'slots': None},
 'locale': 'en-US',
 'object_type': 'IntentRequest',
 'request_id': 'amzn1.echo-api.request.5a640574-c370-4d63-9883-b030f7a51a78',
 'timestamp': datetime.datetime(2024, 4, 9, 17, 28, 11, tzinfo=tzlocal())}
2024-04-09 17:28:12,143 - root - DEBUG - In GeneralExceptionHandler
2024-04-09 17:28:12,143 - root - ERROR - General Exception: Unable to find a suitable request handler
2024-04-09 17:28:12,143 - root - ERROR - Request Type Was: IntentRequest
2024-04-09 17:28:12,143 - root - ERROR - Intent Name Was: AMAZON.FallbackIntent
2024-04-09 17:28:12,143 - werkzeug - INFO - 172.19.0.4 - - [09/Apr/2024 17:28:12] "POST / HTTP/1.0" 200 -

ask navi sonic play the playlist wicked bangers Worked!!

ask navi sonic play the playlist puscifer

2024-04-09 17:29:58,762 - root - DEBUG - Request received: {'dialog_state': None,
 'intent': {'confirmation_status': 'NONE',
            'name': 'NaviSonicPlayPlaylist',
            'slots': {'playlist': {'confirmation_status': 'NONE',
                                   'name': 'playlist',
                                   'resolutions': None,
                                   'slot_value': None,
                                   'value': None}}},
 'locale': 'en-US',
 'object_type': 'IntentRequest',
 'request_id': 'amzn1.echo-api.request.20687878-7609-456d-a935-886321294dc1',
 'timestamp': datetime.datetime(2024, 4, 9, 17, 29, 58, tzinfo=tzlocal())}
2024-04-09 17:29:58,763 - root - DEBUG - In NaviSonicPlayPlaylist
2024-04-09 17:29:58,763 - root - DEBUG - In GeneralExceptionHandler
2024-04-09 17:29:58,763 - root - ERROR - General Exception: 'NoneType' object has no attribute 'value'
2024-04-09 17:29:58,763 - root - ERROR - Request Type Was: IntentRequest
2024-04-09 17:29:58,763 - root - ERROR - Intent Name Was: NaviSonicPlayPlaylist

The last 3 playlists are stock install and do not exist but still give weird responses.

image