tunein.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:AlexaPi 作者: alexa-pi 项目源码 文件源码
def tune(self, station):
        logger.debug('Tuning station id %s', station['guide_id'])
        args = '&id=' + station['guide_id']
        stream_uris = []
        for stream in self._tunein('Tune.ashx', args):
            if 'url' in stream:
                stream_uris.append(stream['url'])
        if not stream_uris:
            logger.error('Failed to tune station id %s', station['guide_id'])
        return list(OrderedDict.fromkeys(stream_uris))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号