2021-01-05 13:03:04 -03:00
|
|
|
module.exports = async (app, req, res) => {
|
|
|
|
|
2021-12-07 16:14:56 -03:00
|
|
|
if (req.offline) return res.sendError()
|
2021-02-13 19:13:15 -03:00
|
|
|
|
|
|
|
let songID = req.params.song
|
|
|
|
req.gdRequest('getGJSongInfo', {songID: songID}, function(err, resp, body) {
|
2021-12-07 16:14:56 -03:00
|
|
|
if (err) return res.sendError(400)
|
2022-02-06 21:18:45 -03:00
|
|
|
return res.send(!body.startsWith("-") && body.length > 10)
|
2021-02-13 19:13:15 -03:00
|
|
|
})
|
2022-02-06 21:18:45 -03:00
|
|
|
}
|