ffmpeg
This commit is contained in:
@@ -3,11 +3,13 @@ import cheerio from "cheerio"
|
|||||||
import axios from "axios"
|
import axios from "axios"
|
||||||
|
|
||||||
class Reptile {
|
class Reptile {
|
||||||
|
// 初始化代理
|
||||||
constructor(proxy) {
|
constructor(proxy) {
|
||||||
if (proxy) {
|
if (proxy) {
|
||||||
axios.defaults.proxy = proxy
|
axios.defaults.proxy = proxy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 通过名字搜索
|
||||||
async find(name) {
|
async find(name) {
|
||||||
let url = `https://dmhy.anoneko.com/topics/list?keyword=${name}`
|
let url = `https://dmhy.anoneko.com/topics/list?keyword=${name}`
|
||||||
url = encodeURI(url)
|
url = encodeURI(url)
|
||||||
@@ -30,6 +32,7 @@ class Reptile {
|
|||||||
})
|
})
|
||||||
console.log(JSON.stringify(list))
|
console.log(JSON.stringify(list))
|
||||||
}
|
}
|
||||||
|
// 获取[]中间的内容 目前通过这个获取第几集
|
||||||
async getepisode(name) {
|
async getepisode(name) {
|
||||||
// let re = /\[.*?\]/g
|
// let re = /\[.*?\]/g
|
||||||
let episode = name.match( /(?<=\[).*?(?=\])/g)
|
let episode = name.match( /(?<=\[).*?(?=\])/g)
|
||||||
|
|||||||
Reference in New Issue
Block a user