Add vidmoly.me

This commit is contained in:
2023-12-08 15:50:19 +01:00
parent a10066458f
commit ccfc77167b
4 changed files with 35 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import { matches } from '~/lib/match';
import Hls from 'hls.js';
import { storageSet } from '~/lib/settings';
async function playNative(url: string, videoElem: HTMLVideoElement) {
videoElem.src = url;
@ -31,6 +32,8 @@ export async function play(videoElem: HTMLVideoElement) {
}
document.title = `Stream Bypass (${domain})`;
await storageSet('referer', { domain: domain });
if (new URL(url).pathname.endsWith('.m3u8')) {
await playHls(url, videoElem);
} else {