mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-06-19 13:07:44 +00:00
fix: update animetsu stream logic and bump version
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -258,7 +258,7 @@
|
|||||||
{
|
{
|
||||||
"display_name": "Animetsu",
|
"display_name": "Animetsu",
|
||||||
"value": "animetsu",
|
"value": "animetsu",
|
||||||
"version": "1.3",
|
"version": "1.4",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"type": "english",
|
"type": "english",
|
||||||
"disabled": false
|
"disabled": false
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ export const getStream = async function ({
|
|||||||
try {
|
try {
|
||||||
const { axios, openWebView, commonHeaders } = providerContext;
|
const { axios, openWebView, commonHeaders } = providerContext;
|
||||||
const baseUrl = "https://animetsu.net";
|
const baseUrl = "https://animetsu.net";
|
||||||
|
const streamUrl = `https://swiftstream.top/proxy`;
|
||||||
|
|
||||||
let wafCookies: string | undefined;
|
let wafCookies: string | undefined;
|
||||||
try {
|
try {
|
||||||
@@ -86,11 +87,11 @@ export const getStream = async function ({
|
|||||||
}
|
}
|
||||||
res.data.sources.forEach((source: any) => {
|
res.data.sources.forEach((source: any) => {
|
||||||
const sourceUrl = source.url.startsWith("/")
|
const sourceUrl = source.url.startsWith("/")
|
||||||
? `${baseUrl}${source.url}`
|
? `${streamUrl}${source.url}`
|
||||||
: source.url;
|
: source.url;
|
||||||
streamLinks.push({
|
streamLinks.push({
|
||||||
server: `${server} (Sub): ${source.quality}`,
|
server: `${server} (Sub): ${source.quality}`,
|
||||||
link: `https://m3u8.8man.workers.dev?url=${encodeURIComponent(sourceUrl)}`,
|
link: sourceUrl,
|
||||||
type: "m3u8",
|
type: "m3u8",
|
||||||
quality: source.quality,
|
quality: source.quality,
|
||||||
headers: {
|
headers: {
|
||||||
@@ -155,11 +156,11 @@ export const getStream = async function ({
|
|||||||
}
|
}
|
||||||
res.data.sources.forEach((source: any) => {
|
res.data.sources.forEach((source: any) => {
|
||||||
const sourceUrl = source.url.startsWith("/")
|
const sourceUrl = source.url.startsWith("/")
|
||||||
? `${baseUrl}${source.url}`
|
? `${streamUrl}${source.url}`
|
||||||
: source.url;
|
: source.url;
|
||||||
streamLinks.push({
|
streamLinks.push({
|
||||||
server: `${server} (Dub): ${source.quality}`,
|
server: `${server} (Dub): ${source.quality}`,
|
||||||
link: `https://m3u8.8man.workers.dev?url=${encodeURIComponent(sourceUrl)}`,
|
link: sourceUrl,
|
||||||
type: "m3u8",
|
type: "m3u8",
|
||||||
quality: source.quality,
|
quality: source.quality,
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user