Ejemplo n.º 1
0
async def get_album_from_migu(request: web.Request):
    return await get_album(migu.MiGu(), request.match_info['album_id'])
Ejemplo n.º 2
0
async def get_playlist_from_migu(request: web.Request):
    return await get_playlist(migu.MiGu(), request.match_info['playlist_id'])
Ejemplo n.º 3
0
async def search_songs_from_migu(request: web.Request):
    return await search_songs(migu.MiGu(), request.match_info['keyword'])
Ejemplo n.º 4
0
async def get_song_from_migu(request: web.Request):
    return await get_song(migu.MiGu(), request.match_info['song_id'])
Ejemplo n.º 5
0
 async def test_get_playlist(self):
     async with migu.MiGu() as client:
         resp = await client.get_playlist('159248239')
         self.assertIsNotNone(resp)
Ejemplo n.º 6
0
 async def test_get_album(self):
     async with migu.MiGu() as client:
         resp = await client.get_album('1121438701')
         self.assertIsNotNone(resp)
Ejemplo n.º 7
0
 async def test_get_artist(self):
     async with migu.MiGu() as client:
         resp = await client.get_artist('112')
         self.assertIsNotNone(resp)
Ejemplo n.º 8
0
 async def test_get_song(self):
     async with migu.MiGu() as client:
         resp = await client.get_song('63273402938')
         self.assertIsNotNone(resp)
Ejemplo n.º 9
0
 async def test_search_songs(self):
     async with migu.MiGu() as client:
         resp = await client.search_songs('周杰伦')
         self.assertIsNotNone(resp)