mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-21 21:26:19 +01:00
Update videasy/videasy.js
This commit is contained in:
parent
f05eff81dc
commit
820ef13aca
1 changed files with 10 additions and 6 deletions
|
|
@ -186,7 +186,7 @@ async function extractEpisodes(url) {
|
|||
async function extractStreamUrl(ID) {
|
||||
if (ID.includes('movie')) {
|
||||
const tmdbID = ID.replace('/movie/', '');
|
||||
const cinebyResponse = await soraFetch(`https://db.cineby.app/3/movie/${tmdbID}?append_to_response=external_ids&language=en&api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const cinebyResponse = await soraFetch(`https://jumpfreedom.com/3/movie/${tmdbID}?append_to_response=external_ids&language=en&api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const cinebyData = await cinebyResponse.json();
|
||||
|
||||
const title = encodeURIComponent(cinebyData.title);
|
||||
|
|
@ -194,7 +194,7 @@ async function extractStreamUrl(ID) {
|
|||
const imdbId = cinebyData.external_ids?.imdb_id || '';
|
||||
const tmdbId = cinebyData.id;
|
||||
|
||||
const fullUrl = `https://api.videasy.net/myflixerzupcloud/sources-with-title?title=${title}&mediaType=movie&year=${year}&episodeId=1&seasonId=1&tmdbId=${tmdbId}&imdbId=${imdbId}`;
|
||||
const fullUrl = `https://api.videasy.net/cdn/sources-with-title?title=${title}&mediaType=movie&year=${year}&episodeId=1&seasonId=1&tmdbId=${tmdbId}&imdbId=${imdbId}`;
|
||||
|
||||
console.log('Full URL:' + fullUrl);
|
||||
|
||||
|
|
@ -220,7 +220,9 @@ async function extractStreamUrl(ID) {
|
|||
const sources = result.sources || [];
|
||||
const subtitles = result.subtitles || [];
|
||||
|
||||
const streams = sources.flatMap(src => [src.quality, src.url]);
|
||||
const nonHDRSources = sources.filter(s => !s.quality.includes("HDR"));
|
||||
|
||||
const streams = nonHDRSources.flatMap(src => [src.quality, src.url]);
|
||||
|
||||
const englishSubtitle = subtitles.find(
|
||||
sub => sub.language.toLowerCase().includes('english')
|
||||
|
|
@ -236,7 +238,7 @@ async function extractStreamUrl(ID) {
|
|||
const seasonNumber = parts[3];
|
||||
const episodeNumber = parts[4];
|
||||
|
||||
const cinebyResponse = await soraFetch(`https://db.cineby.app/3/tv/${tmdbID}?append_to_response=external_ids&language=en&api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const cinebyResponse = await soraFetch(`https://jumpfreedom.com/3/tv/${tmdbID}?append_to_response=external_ids&language=en&api_key=ad301b7cc82ffe19273e55e4d4206885`);
|
||||
const cinebyData = await cinebyResponse.json();
|
||||
|
||||
const title = encodeURIComponent(cinebyData.name);
|
||||
|
|
@ -244,7 +246,7 @@ async function extractStreamUrl(ID) {
|
|||
const imdbId = cinebyData.external_ids?.imdb_id || '';
|
||||
const tmdbId = cinebyData.id;
|
||||
|
||||
const fullUrl = `https://api.videasy.net/myflixerzupcloud/sources-with-title?title=${title}&mediaType=tv&year=${year}&episodeId=${episodeNumber}&seasonId=${seasonNumber}&tmdbId=${tmdbId}&imdbId=${imdbId}`;
|
||||
const fullUrl = `https://api.videasy.net/cdn/sources-with-title?title=${title}&mediaType=tv&year=${year}&episodeId=${episodeNumber}&seasonId=${seasonNumber}&tmdbId=${tmdbId}&imdbId=${imdbId}`;
|
||||
|
||||
console.log('Full URL:' + fullUrl);
|
||||
|
||||
|
|
@ -270,7 +272,9 @@ async function extractStreamUrl(ID) {
|
|||
const sources = result.sources || [];
|
||||
const subtitles = result.subtitles || [];
|
||||
|
||||
const streams = sources.flatMap(src => [src.quality, src.url]);
|
||||
const nonHDRSources = sources.filter(s => !s.quality.includes("HDR"));
|
||||
|
||||
const streams = nonHDRSources.flatMap(src => [src.quality, src.url]);
|
||||
|
||||
const englishSubtitle = subtitles.find(
|
||||
sub => sub.language.toLowerCase().includes('english')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue