Skip to content

Commit

Permalink
Update sing_mzk.js
Browse files Browse the repository at this point in the history
  • Loading branch information
manhkhac committed Jan 13, 2022
1 parent 4f2129d commit fab615c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules_new_2022/sing_mzk.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports.run = async function({
try {
let {
data: s
} = await r.get(`http://mzkapi.me/video?link=http://youtu.be/${e}&apikey=${m}`);
} = await r.get(`https://manhict.tech/video?link=http://youtu.be/${e}&apikey=${m}`);
if (s.error) return t.sendMessage(s.error, c);
if (t.sendMessage("Đang tải, vui lòng đợi", c, ((e, s) => setTimeout((() => {
t.unsendMessage(s.messageID)
Expand All @@ -68,7 +68,7 @@ module.exports.run = async function({
const n = encodeURIComponent(s.join(" "));
var {
data: v
} = await r.get(`http://mzkapi.me/youtube?q=${n}&apikey=${m}`);
} = await r.get(`https://manhict.tech/youtube?q=${n}&apikey=${m}`);
if (v.error) return t.sendMessage(v.error, c);
f = v.results;
for (let e in f)
Expand Down Expand Up @@ -120,7 +120,7 @@ module.exports.run = async function({
try {
let {
data: o
} = await a.get(`http://mzkapi.me/singv2/id?id=${s.idYT[e.body-1]}&apikey=${m}`);
} = await a.get(`https://manhict.tech/singv2/id?id=${s.idYT[e.body-1]}&apikey=${m}`);
if (o.error) return t.sendMessage(o.error, u);
if ("ok" != o.status) return t.sendMessage("Can't download this video!", u, l);
let c = o.title,
Expand Down

0 comments on commit fab615c

Please sign in to comment.