How to use the feeluown.controller_api.ControllerApi function in feeluown

To help you get started, we’ve selected a few feeluown examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github feeluown / FeelUOwn / feeluown / network_manager.py View on Github external
def access_network_queue(self, res):
        if ControllerApi.network_manager.network_queue.empty():
            LOG.info('Nothing in network queue')
            return
        item = ControllerApi.network_manager.network_queue.get_nowait()
        item(res)
github feeluown / FeelUOwn / feeluown / controllers / modes.py View on Github external
def get_songs(cls):
        if ControllerApi.state['current_mid'] == 0:
            ControllerApi.notify_widget.show_message("O.o", "无法寻找相似歌曲")
            return []
        songs = ControllerApi.api.get_simi_songs(ControllerApi.state['current_mid'])
        return songs if songs else []
github feeluown / FeelUOwn / feeluown / controller_api.py View on Github external
def toggle_lyric_widget(cls):
        if ControllerApi.lyric_widget.isVisible():
            ControllerApi.lyric_widget.close()
        else:
            ControllerApi.lyric_widget.show()