Skip to content

Commit

Permalink
Update wogg.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tt9912 authored Dec 19, 2024
1 parent ddafe6b commit 4b37d09
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions newjs/wogg.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,13 +713,14 @@ if (isQuark) {
const list = filteredItems.map((item) => {
const vod_name = item.match(/title="([^"]+)"/)?.[1].trim() || '';
const vod_pic = item.match(/data-src="([^"]+)"/)?.[1] || '';
const final_pic = vod_pic ? `https://images.weserv.nl/?url=${vod_pic}&w=300&h=300` : '';
const vod_link = item.match(/<a href="([^"]+)"/)?.[1] || '';
const vod_remarks = item.match(/<div class="module-item-text">(.*?)<\/div>/)?.[1].trim() || '';
return {
vod_id: vod_link,
vod_name: vod_name,
vod_remarks: vod_remarks,
vod_pic: vod_pic
vod_pic: final_pic
};
});

Expand Down Expand Up @@ -1365,13 +1366,14 @@ if (isQuark) {
const list = items.map((item) => {
const vod_name = 文本_取中间( 文本_取中间(item,'<a class="video-serial"','/a>'),'title="','"') || '';
const vod_pic = 文本_取中间(item,'data-src="','"') || '';
const final_pic = vod_pic ? `https://images.weserv.nl/?url=${vod_pic}&w=300&h=300` : '';
const vod_id = 文本_取中间( 文本_取中间(item,'<a class="video-serial"','/a>'),'href="','"') || '';
const vod_remarks = 文本_取中间( 文本_取中间(item,'<a class="video-serial"','/a>'),'">','<') || '';
return {
vod_id: vod_id,
vod_name: vod_name,
vod_remarks: vod_remarks,
vod_pic: vod_pic
vod_pic: final_pic
};
});
return JSON.stringify({
Expand Down Expand Up @@ -1426,13 +1428,14 @@ if (isQuark) {
console.log(item);
const vod_name = item.match(/title="([^"]+)"/)?.[1].trim() || '';
const vod_pic = item.match(/data-src="([^"]+)"/)?.[1] || '';
const final_pic = vod_pic ? `https://images.weserv.nl/?url=${vod_pic}&w=300&h=300` : '';
const vod_link = item.match(/<a href="([^"]+)"/)?.[1] || '';
const vod_remarks = item.match(/<div class="module-item-text">(.*?)<\/div>/)?.[1].trim() || '';
return {
vod_id: vod_link,
vod_name: vod_name,
vod_remarks: vod_remarks,
vod_pic: vod_pic
vod_pic: final_pic
};
});
return JSON.stringify({
Expand Down Expand Up @@ -1475,6 +1478,7 @@ if (isQuark) {
const vod_actor = 移除html代码(html.match(/<div class="video-info-items"><span class="video-info-itemtitle"><\/span>([\s\S]*?)<\/div>/)[1].trim()) || '未知';
//console.log(vod_actor);
const vod_pic = html.match(/<img class="lazyload" data-src="(.*?)"/)[1] || '';
const final_pic = vod_pic ? `https://images.weserv.nl/?url=${vod_pic}&w=300&h=300` : '';
//console.log(vod_pic);
let vod_remarks='';
if(html.indexOf('备注:</span>') !== -1){
Expand Down Expand Up @@ -1524,7 +1528,7 @@ if (isQuark) {
list: [{
vod_id: vod_id,
vod_name: vod_name,
vod_pic: vod_pic,
vod_pic: final_pic,
vod_actor: vod_actor,
vod_director: vod_director,
vod_remarks: vod_remarks,
Expand Down

0 comments on commit 4b37d09

Please sign in to comment.