From 59e53b5d1bb9894d251f7a07544bf043263a9181 Mon Sep 17 00:00:00 2001
From: I Am I <31686695+5ime@users.noreply.github.com>
Date: Fri, 6 Jan 2023 15:12:57 +0800
Subject: [PATCH] fix
---
src/components/index.vue | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/components/index.vue b/src/components/index.vue
index 3949644..c179164 100644
--- a/src/components/index.vue
+++ b/src/components/index.vue
@@ -6,8 +6,8 @@
短视频/图集在线去水印解析
-
本站公告 本站为 Ten·API 演示页面 图集解析仅抖音/快手/微博可用
-
目前支持 抖音/皮皮虾/火山/微视/微博/绿洲/最右/轻视频/instagram/哔哩哔哩/快手/全民小视频/皮皮搞笑/全民k歌/巴塞电影/陌陌/Before避风/开眼/Vue Vlog/小咖秀/西瓜视频
+
本站公告 解析失败请留言: 留言反馈 图集解析仅抖音/快手/微博/皮皮虾/最右可用
+
目前支持 皮皮虾/抖音/微视/快手/6间房/哔哩哔哩/微博/绿洲/度小视/开眼/陌陌/皮皮搞笑/全民k歌/逗拍/虎牙/新片场/哔哩哔哩/Acfun/美拍
温馨提示 粘贴视频地址时无需删除文案 但如果视频链接正确但解析失败请删掉文案后重试
@@ -25,7 +25,7 @@
{{info.title}}
下载封面
下载视频
- 下载音乐
+ 下载音乐
@@ -59,13 +59,13 @@ export default {
this.loading = true
const url = /http[s]?:\/\/[\w.]+[\w/]*[\w.]*\??[\w=&:\-+%]*[/]*/.exec(this.input)
if(this.select == '1' || this.select == ''){
- this.axios.get('https://tenapi.cn/video/?url=' + url).then((res) => {
- if(res.data.url != null){
- if(res.data.music != null){
+ this.axios.get('https://tenapi.cn/v2/video?url=' + url).then((res) => {
+ if(res.data.code == 200){
+ if(res.data.data.music != null){
this.music = true
}
this.seen = true
- this.info = res.data
+ this.info = res.data.data
this.loading = false
this.$notify.success({
title: '解析成功',
@@ -82,11 +82,11 @@ export default {
})
}else{
this.seen = false
- this.axios.get('https://tenapi.cn/images/?url=' + url).then((res) => {
+ this.axios.get('https://tenapi.cn/v2/images?url=' + url).then((res) => {
if(res.data.code == 200){
this.iseen = true
this.loading = false
- this.images_url = res.data.images
+ this.images_url = res.data.data.images
this.$notify.success({
title: '解析成功',
message: '图集暂不支持批量下载,请长按下载或右键另存为'