Skip to content

Commit

Permalink
Update vars-music.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MEDELBOU3 authored Dec 29, 2024
1 parent 27da6d2 commit 9ba4b68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vars-music.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function onYouTubeIframeAPIReady() {
}

async function fetchMusicVideos() {
const API_KEY = 'AIzaSyA8gx66XUFZ-abihuxnF3mvLed5qgOnvdY';
const API_KEY = 'AIzaSyB0-q2rcbRKwE_mNZTg7uV8WTqpeot5q84';
try {
const response = await fetch(`https://www.googleapis.com/youtube/v3/videos?part=snippet&chart=mostPopular&videoCategoryId=10&maxResults=20&key=${API_KEY}`);
const data = await response.json();
Expand Down Expand Up @@ -100,7 +100,7 @@ document.addEventListener('input', function(e) {
async function searchMusic(query) {
if (query.length < 3) return;

const API_KEY = 'AIzaSyA8gx66XUFZ-abihuxnF3mvLed5qgOnvdY';
const API_KEY = 'AIzaSyB0-q2rcbRKwE_mNZTg7uV8WTqpeot5q84';
try {
const response = await fetch(`https://www.googleapis.com/youtube/v3/search?part=snippet&q=${query}&type=video&videoCategoryId=10&maxResults=20&key=${API_KEY}`);
const data = await response.json();
Expand All @@ -117,7 +117,7 @@ async function searchMusic(query) {
// YouTube Video Player and Queue Management
let videoPlayer;
let queue = [];
const API_KEY = 'AIzaSyA8gx66XUFZ-abihuxnF3mvLed5qgOnvdY';
const API_KEY = 'AIzaSyB0-q2rcbRKwE_mNZTg7uV8WTqpeot5q84';
let currentVideoIndex = -1;
let isPlayerExpanded = false;

Expand Down

0 comments on commit 9ba4b68

Please sign in to comment.