Tentando conciliar as novidades com as minhas alteracoes
This commit is contained in:
+5
-3
@@ -42,7 +42,7 @@ logger.addHandler(handler)
|
||||
# Get service configuration
|
||||
#
|
||||
|
||||
logger.info('AskNavidrome 0.9!')
|
||||
logger.info('AskNavidrome 0.10!')
|
||||
logger.debug('Getting configuration from the environment...')
|
||||
|
||||
try:
|
||||
@@ -1004,7 +1004,8 @@ class NextPlaybackHandler(AbstractRequestHandler):
|
||||
"""Handle NextIntent"""
|
||||
|
||||
def can_handle(self, handler_input: HandlerInput) -> bool:
|
||||
return is_intent_name('AMAZON.NextIntent')(handler_input)
|
||||
return (is_intent_name('AMAZON.NextIntent')(handler_input) or
|
||||
is_request_type('PlaybackController.NextCommandIssued')(handler_input))
|
||||
|
||||
def handle(self, handler_input: HandlerInput) -> Response:
|
||||
logger.debug('In NextPlaybackHandler')
|
||||
@@ -1021,7 +1022,8 @@ class PreviousPlaybackHandler(AbstractRequestHandler):
|
||||
"""Handle PreviousIntent"""
|
||||
|
||||
def can_handle(self, handler_input: HandlerInput) -> bool:
|
||||
return is_intent_name('AMAZON.PreviousIntent')(handler_input)
|
||||
return (is_intent_name('AMAZON.PreviousIntent')(handler_input) or
|
||||
is_request_type('PlaybackController.PreviousCommandIssued')(handler_input))
|
||||
|
||||
def handle(self, handler_input: HandlerInput) -> Response:
|
||||
logger.debug('In PreviousPlaybackHandler')
|
||||
|
||||
Reference in New Issue
Block a user