34 lines
828 B
JavaScript
34 lines
828 B
JavaScript
import {base} from "./base";
|
|
|
|
export async function getVideoInfo(id) {
|
|
return await base.get("/videoInfo/getVideoInfo", {
|
|
params: {
|
|
id
|
|
}
|
|
})
|
|
}
|
|
|
|
export async function searchVideo(name) {
|
|
return await base.get("/videoInfo/searchVideo", {
|
|
params: {
|
|
name
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
export async function getImdbName(url) {
|
|
return await base.get("/videoInfo/getImdbName", {
|
|
params: {
|
|
url
|
|
}
|
|
})
|
|
}
|
|
export async function addSubscribe({name, rename, desc, year, season, ep, url, img, subtitle, time,skip,sid,count}) {
|
|
return await base.post("/videoInfo/addSubscribe", {name, rename, desc, year, season, ep, url, img, subtitle, time,skip,sid,count})
|
|
}
|
|
|
|
export async function getSubscribe(){
|
|
return await base.get("/videoInfo/getSubscribe")
|
|
|
|
} |