mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 22:18:20 +01:00
switch to undici :3
This commit is contained in:
parent
3bb4e1030e
commit
5554cb543e
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,6 @@
|
||||||
* Please don't remove this comment while sharing this code.
|
* Please don't remove this comment while sharing this code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const fetch = require("node-fetch");
|
|
||||||
const { toJson } = require("xml2json");
|
const { toJson } = require("xml2json");
|
||||||
const { curly } = require("node-libcurl");
|
const { curly } = require("node-libcurl");
|
||||||
const fetcher = require("../libpoketube/libpoketube-fetcher.js");
|
const fetcher = require("../libpoketube/libpoketube-fetcher.js");
|
||||||
|
@ -64,6 +63,9 @@ class PokeTubeCore {
|
||||||
* @returns {Promise<object>} Promise resolving to the video information.
|
* @returns {Promise<object>} Promise resolving to the video information.
|
||||||
*/
|
*/
|
||||||
async video(v) {
|
async video(v) {
|
||||||
|
|
||||||
|
const { fetch } = await import("undici");
|
||||||
|
|
||||||
if (v == null) return "Gib ID";
|
if (v == null) return "Gib ID";
|
||||||
|
|
||||||
// Check if result is already cached
|
// Check if result is already cached
|
||||||
|
|
Loading…
Reference in a new issue