This commit is contained in:
Omar Najjar 2025-04-04 19:38:58 +11:00 committed by GitHub
parent c8b022f3c0
commit 5028a0afbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -752,7 +752,7 @@
let currentImdbId = null; let currentImdbId = null;
let currentSeason = 1; let currentSeason = 1;
let currentEpisode = 1; let currentEpisode = 1;
let currentSource = 'player.vidsrc.co'; // Default source let currentSource = 'vidsrc.cc'; // Default source
// Genre IDs mapping for creating meaningful categories // Genre IDs mapping for creating meaningful categories
const genreMap = { const genreMap = {
@ -1227,8 +1227,8 @@
// Function to load video from current source // Function to load video from current source
function loadVideoSource() { function loadVideoSource() {
let videoUrl; let videoUrl;
if (currentSource === 'player.vidsrc.co') { if (currentSource === 'vidsrc.cc') {
videoUrl = 'https://player.vidsrc.co/embed/'; videoUrl = 'https://vidsrc.cc/embed/';
if (currentMediaType === 'movie') { if (currentMediaType === 'movie') {
videoUrl += `movie/${currentImdbId}`; videoUrl += `movie/${currentImdbId}`;
} else if (currentMediaType === 'tv') { } else if (currentMediaType === 'tv') {
@ -1338,8 +1338,8 @@
// Set up alternate source button // Set up alternate source button
document.getElementById('altSourceBtn').addEventListener('click', function() { document.getElementById('altSourceBtn').addEventListener('click', function() {
// Toggle between sources // Toggle between sources
currentSource = currentSource === 'player.vidsrc.co' ? 'vidsrc.xyz' : 'player.vidsrc.co'; currentSource = currentSource === 'vidsrc.cc' ? 'vidsrc.xyz' : 'vidsrc.cc';
this.textContent = `Try ${currentSource === 'player.vidsrc.co' ? 'vidsrc.xyz' : 'player.vidsrc.co'}`; this.textContent = `Try ${currentSource === 'vidsrc.cc' ? 'vidsrc.xyz' : 'vidsrc.cc'}`;
// Reload with new source // Reload with new source
loadVideoSource(); loadVideoSource();