Skip to content

Commit

Permalink
Add new video sources: EmbedSU, PrimeWire, and SmashyStream with corr…
Browse files Browse the repository at this point in the history
…esponding iframe URLs
  • Loading branch information
chintan992 committed Jan 29, 2025
1 parent 96f3193 commit d1b7f8e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ const VIDEO_SOURCES = {
name: 'Vidjoy Pro',
quality: 'HD LESS ADS',
},
embedSU: {
name: 'EmbedSU',
quality: 'HD',
},
primeWire: {
name: 'PrimeWire',
quality: 'HD',
},
smashyStream: {
name: 'SmashyStream',
quality: 'HD',
},
};

const getIframeSrc = (mediaData) => {
Expand Down Expand Up @@ -113,6 +125,18 @@ const getIframeSrc = (mediaData) => {
return type === 'series'
? `https://vidjoy.pro/embed/tv/${seriesId}/${season}/${episodeNo}`
: `https://vidjoy.pro/embed/movie/${movieId}`;
case 'embedSU':
return type === 'series'
? `https://embed.su/embed/tv/${seriesId}/${season}/${episodeNo}`
: `https://embed.su/embed/movie/${movieId}`;
case 'primeWire':
return type === 'series'
? `https://www.primewire.tf/embed/tv?tmdb=${seriesId}&season=${season}&episode=${episodeNo}`
: `https://www.primewire.tf/embed/movie?tmdb=${movieId}`;
case 'smashyStream':
return type === 'series'
? `https://embed.smashystream.com/playere.php?tmdb=${seriesId}&season=${season}&episode=${episodeNo}`
: `https://embed.smashystream.com/playere.php?tmdb=${movieId}`;
default:
return '';
}
Expand Down

0 comments on commit d1b7f8e

Please sign in to comment.