fast72 commited on
Commit
76c0b03
·
verified ·
1 Parent(s): b544520

Update lib/yt.js

Browse files
Files changed (1) hide show
  1. lib/yt.js +1 -1
lib/yt.js CHANGED
@@ -131,7 +131,7 @@ async function twitter(url) {
131
  }
132
 
133
  const html = response.data.data;
134
- const $ = cheerio.load(html);
135
  let results = [];
136
  $(".dl-action a").each((_, el) => {
137
  const type = $(el).text().trim();
 
131
  }
132
 
133
  const html = response.data.data;
134
+ const $ = cheerio?.load(html);
135
  let results = [];
136
  $(".dl-action a").each((_, el) => {
137
  const type = $(el).text().trim();