Ejemplo n.º 1
0
 async def test_get_playlist(self):
     async with xiami.XiaMi() as client:
         resp = await client.get_playlist('8007523')
         self.assertIsNotNone(resp)
Ejemplo n.º 2
0
 async def test_get_song_lyric(self):
     async with xiami.XiaMi() as client:
         resp = await client.get_playlist('xMPr7Lbbb28')
         self.assertIsNotNone(resp)
Ejemplo n.º 3
0
 async def test_get_artist(self):
     async with xiami.XiaMi() as client:
         resp = await client.get_artist('3110')
         self.assertIsNotNone(resp)
Ejemplo n.º 4
0
 async def test_get_album(self):
     async with xiami.XiaMi() as client:
         resp = await client.get_album('nmTM4c70144')
         self.assertIsNotNone(resp)
Ejemplo n.º 5
0
 async def test_search_songs(self):
     async with xiami.XiaMi() as client:
         resp = await client.search_songs('五月天')
         self.assertIsNotNone(resp)
Ejemplo n.º 6
0
async def get_playlist_from_xiami(request: web.Request):
    return await get_playlist(xiami.XiaMi(), request.match_info['playlist_id'])
Ejemplo n.º 7
0
async def get_album_from_xiami(request: web.Request):
    return await get_album(xiami.XiaMi(), request.match_info['album_id'])
Ejemplo n.º 8
0
async def get_song_from_xiami(request: web.Request):
    return await get_song(xiami.XiaMi(), request.match_info['song_id'])
Ejemplo n.º 9
0
async def search_songs_from_xiami(request: web.Request):
    return await search_songs(xiami.XiaMi(), request.match_info['keyword'])