x
This commit is contained in:
parent
c8b022f3c0
commit
5028a0afbd
1 changed files with 5 additions and 5 deletions
10
index.html
10
index.html
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue