1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Merge pull request #409 from movie-web/dev

Release 3.2.1
This commit is contained in:
William Oldham 2023-08-16 20:09:03 +01:00 committed by GitHub
commit ee9400373d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 9 deletions

View file

@ -1,6 +1,6 @@
{
"name": "movie-web",
"version": "3.2.0",
"version": "3.2.1",
"private": true,
"homepage": "https://movie-web.app",
"dependencies": {

View file

@ -18,12 +18,6 @@ import { compareTitle } from "@/utils/titleMatch";
const nanoid = customAlphabet("0123456789abcdef", 32);
function makeFasterUrl(url: string) {
const fasterUrl = new URL(url);
fasterUrl.host = "mp4.shegu.net"; // this domain is faster
return fasterUrl.toString();
}
const qualityMap = {
"360p": MWStreamQuality.Q360P,
"480p": MWStreamQuality.Q480P,
@ -205,7 +199,7 @@ registerProvider({
return {
embeds: [],
stream: {
streamUrl: makeFasterUrl(hdQuality.path),
streamUrl: hdQuality.path,
quality: qualityMap[hdQuality.quality as QualityInMap],
type: MWStreamType.MP4,
captions: mappedCaptions,
@ -261,7 +255,7 @@ registerProvider({
quality: qualityMap[
hdQuality.quality as QualityInMap
] as MWStreamQuality,
streamUrl: makeFasterUrl(hdQuality.path),
streamUrl: hdQuality.path,
type: MWStreamType.MP4,
captions: mappedCaptions,
},