MCPcopy Create free account
hub / github.com/NobyDa/Script / adURL

Function adURL

Bahamut/BahamutAnimeAds.js:40–47  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

38}
39
40function adURL(str) {
41 return new Promise((res) => {
42 get({
43 url: `https://api.gamer.com.tw/mobile_app/anime/v1/stat_ad.php?ad=${str}&schedule=0&sn=${req.url.split(/sn=(\d+)/i)[1]}`,
44 headers: req.headers
45 }, (err, resp, data) => res())
46 })
47}
48
49function playURL() {
50 return new Promise((res) => {

Callers 1

runsFunction · 0.85

Calls 1

getFunction · 0.70

Tested by

no test coverage detected