def PlayAudio(id, storeId): if storeId != 0: try: song_url = API.get_stream_url(storeId) except CallFailure: song_url = API.get_stream_url(id) else: song_url = API.get_stream_url(id) return Redirect(song_url)