From d2c52c105014e5ddd0a0b81891b6bba55c512f00 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 5 Mar 2017 16:41:56 +0100 Subject: [PATCH] Simplify code --- resources/lib/companion.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/resources/lib/companion.py b/resources/lib/companion.py index 9a01eaa7..46878cf3 100644 --- a/resources/lib/companion.py +++ b/resources/lib/companion.py @@ -100,20 +100,11 @@ def process_command(request_path, params, queue=None): convert_alexa_to_companion(params) log.debug('Received request_path: %s, params: %s' % (request_path, params)) if "/playMedia" in request_path: - try: - containerKey = urlparse(params.get('containerKey')).path - except: - containerKey = '' - try: - playQueueID = REGEX_PLAYQUEUES.findall(containerKey)[0] - except IndexError: - playQueueID = '' # We need to tell service.py queue.put({ 'action': 'playlist', 'data': params }) - return elif request_path == "player/playback/setParameters": if 'volume' in params: