mirror of
https://github.com/Inside4ndroid/TMDB-Embed-API.git
synced 2026-10-22 17:45:11 +00:00
updated the source urls to use viper proxy endpoint.
This commit is contained in:
@@ -35,11 +35,6 @@ app.get('/embedsu/:tmdbId', async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
app.get('/vidsr-net/:tmdbid', async (req, res) => {
|
||||
|
||||
|
||||
})
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Example app listening on port http://localhost:${port}`);
|
||||
});
|
||||
@@ -53,7 +53,7 @@ export async function getEmbedSu(tmdb_id, s, e) {
|
||||
const directQuality = patternSize.map(patternItem => {
|
||||
const sizeQuality = getSizeQuality(patternItem);
|
||||
let dURL = `${DOMAIN}${patternItem}`;
|
||||
dURL = dURL.replace("embed.su/api/proxy/viper/", "").replace(".png", ".m3u8");
|
||||
dURL = dURL.replace(".png", ".m3u8");
|
||||
return { file: dURL, type: 'hls', quality: `${sizeQuality}p`, lang: 'en' };
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user