|
@@ -21,7 +21,7 @@
|
|
<img src="../assets/image/cctv.png" class="soft-icon" title="cctv" />
|
|
<img src="../assets/image/cctv.png" class="soft-icon" title="cctv" />
|
|
<img src="../assets/image/56.png" class="soft-icon" title="56视频" />
|
|
<img src="../assets/image/56.png" class="soft-icon" title="56视频" />
|
|
<img src="../assets/image/acfun.png" class="soft-icon" title="acfun" />
|
|
<img src="../assets/image/acfun.png" class="soft-icon" title="acfun" />
|
|
- 等多个平台,<span style="color: #F56C6C;">(请使用win7以上系统)</span>
|
|
|
|
|
|
+ 等多个平台,<span style="color: #F56C6C;">(不支持win7及win7以下系统)</span>
|
|
|
|
|
|
<el-popover placement="bottom" popper-class="popper-open" trigger="hover" content="会员/付费/版权视频不支持下载">
|
|
<el-popover placement="bottom" popper-class="popper-open" trigger="hover" content="会员/付费/版权视频不支持下载">
|
|
<i class="el-icon-info" slot="reference" style="margin-right: 10px; color: #F56C6C;"></i>
|
|
<i class="el-icon-info" slot="reference" style="margin-right: 10px; color: #F56C6C;"></i>
|
|
@@ -30,7 +30,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div style="margin-top: 20px;">
|
|
<div style="margin-top: 20px;">
|
|
- <el-input type="textarea" :rows="5" placeholder="请输入需要解析的视频地址" v-model="formatUrl"></el-input>
|
|
|
|
|
|
+ <el-input id="aaa" type="textarea" :rows="5" placeholder="请输入需要解析的视频地址" v-model="formatUrl"></el-input>
|
|
|
|
|
|
<div class="content-top" style="padding: 10px 0; text-align: center; display: inherit;">
|
|
<div class="content-top" style="padding: 10px 0; text-align: center; display: inherit;">
|
|
<el-button type="danger" @click="startParsing()" :loading="parseLoading">开始解析</el-button>
|
|
<el-button type="danger" @click="startParsing()" :loading="parseLoading">开始解析</el-button>
|
|
@@ -186,7 +186,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<el-divider content-position="left">
|
|
<el-divider content-position="left">
|
|
- 普通下载
|
|
|
|
|
|
+ 软件下载
|
|
<el-popover placement="bottom" popper-class="popper-open" trigger="hover" content="使用软件下载可能会失败,建议使用浏览器/迅雷下载">
|
|
<el-popover placement="bottom" popper-class="popper-open" trigger="hover" content="使用软件下载可能会失败,建议使用浏览器/迅雷下载">
|
|
<i class="el-icon-info" slot="reference" style="margin-left: 10px; color: #F56C6C;"></i>
|
|
<i class="el-icon-info" slot="reference" style="margin-left: 10px; color: #F56C6C;"></i>
|
|
</el-popover>
|
|
</el-popover>
|
|
@@ -220,8 +220,7 @@
|
|
import puppeteer from 'puppeteer-extra'
|
|
import puppeteer from 'puppeteer-extra'
|
|
const axios = require('axios');
|
|
const axios = require('axios');
|
|
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
|
|
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
|
|
- const listNameArr = ['douyin','kuaishou','weibo','','','','','', '' ,'common'];
|
|
|
|
- import { VxeTooltip } from 'vxe-table';
|
|
|
|
|
|
+ const { ipcRenderer } = require('electron');
|
|
|
|
|
|
let separator = '';
|
|
let separator = '';
|
|
if (os.platform == 'linux') {
|
|
if (os.platform == 'linux') {
|
|
@@ -312,6 +311,12 @@
|
|
this.$utils.setStorage('headless', 1);
|
|
this.$utils.setStorage('headless', 1);
|
|
this.$utils.setStorage('waitUntil', 'networkidle2');
|
|
this.$utils.setStorage('waitUntil', 'networkidle2');
|
|
|
|
|
|
|
|
+ document.getElementById('aaa').addEventListener('contextmenu', e => {
|
|
|
|
+ e.preventDefault();
|
|
|
|
+ // 发送事件到主进程,附带元素类型信息
|
|
|
|
+ ipcRenderer.send('show-context-menu', 'input');
|
|
|
|
+ });
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 实时获取开发者设置
|
|
// 实时获取开发者设置
|
|
@@ -488,6 +493,9 @@
|
|
async startParsing(){
|
|
async startParsing(){
|
|
if(this.formatUrl.trim()){
|
|
if(this.formatUrl.trim()){
|
|
let formatUrl = this.formatUrl.trim();
|
|
let formatUrl = this.formatUrl.trim();
|
|
|
|
+ if(formatUrl.indexOf('http://') > -1){
|
|
|
|
+ formatUrl = formatUrl.replace('http://', 'https://');
|
|
|
|
+ }
|
|
|
|
|
|
if(formatUrl.indexOf('https://') == -1){
|
|
if(formatUrl.indexOf('https://') == -1){
|
|
this.$message.error('错了哦,请输入正确的视频地址(https://开头)');
|
|
this.$message.error('错了哦,请输入正确的视频地址(https://开头)');
|