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))
评论列表
文章目录