Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bachig26 authored Dec 20, 2023
1 parent e62d876 commit a4e28d4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions repo/xhamster.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,11 @@ export default class extends Extension {
"Miru-Url": url,
},
});

const title = await this.querySelector(res, "meta[property='og:title']").getAttributeText("content");
const cover = await this.querySelector(res, "meta[property='og:image']").getAttributeText("content");

//const urlPatterns = [/<video class="player-container__no-script-video" preload="auto"[^\"]*src="(.+?\.mp4)"/];
//just 1080p mp4 stream
//const urlPatterns = [/"h264":{"url":"(.+?)"}/]; //m3u8 stream, some videos doesn't play with this url

const urlPatterns = [/<link rel="preload" href="(.+?)"/]; //m3u8 stream


const title = await this.querySelector(res, "meta[property='og:title']").getAttributeText("content");
const cover = await this.querySelector(res, "meta[property='og:image']").getAttributeText("content");
const urlPatterns = [/<link rel="preload" href="(.+?)"/];

let episodeUrl = "";

for (const pattern of urlPatterns) {
Expand Down

0 comments on commit a4e28d4

Please sign in to comment.