(str)
| 38 | } |
| 39 | |
| 40 | function 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 | |
| 49 | function playURL() { |
| 50 | return new Promise((res) => { |