This commit is contained in:
OfficialDakari 2024-10-18 21:57:26 +05:00
parent 8de536efc9
commit 0dbf59c295
1 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,9 @@ export default function routeYTM(app: Application) {
songs = await ytmApi.searchSongs(req.query.q);
dbStore('cache', md5(req.query.q), songs);
}
for (const song of songs) {
dbStore('cache', song.videoId, song);
}
res.send(songs);
}
));