mirror of
https://github.com/Kirazul/Verome-API.git
synced 2026-03-08 00:05:22 +00:00
Initial commit - Virome API
This commit is contained in:
@@ -8,6 +8,10 @@
|
|||||||
A music API built with Deno for searching, streaming, and exploring music data from YouTube Music, YouTube, and Last.fm.
|
A music API built with Deno for searching, streaming, and exploring music data from YouTube Music, YouTube, and Last.fm.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://verome-api.deno.dev/">Live Demo</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|||||||
10
deno.json
10
deno.json
@@ -10,5 +10,13 @@
|
|||||||
},
|
},
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"strict": true
|
"strict": true
|
||||||
|
},
|
||||||
|
"deploy": {
|
||||||
|
"project": "85252de3-9b36-4d8b-b250-e491b4131838",
|
||||||
|
"exclude": [
|
||||||
|
"**/node_modules"
|
||||||
|
],
|
||||||
|
"include": [],
|
||||||
|
"entrypoint": "mod.ts"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
1
ui.ts
1
ui.ts
@@ -229,6 +229,7 @@ export const html = `<!DOCTYPE html>
|
|||||||
</div>
|
</div>
|
||||||
<div id="ytplayer"></div>
|
<div id="ytplayer"></div>
|
||||||
<script>
|
<script>
|
||||||
|
(function(){var oe=console.error;console.error=function(){var m=arguments[0]||'';if(typeof m==='string'&&(m.includes('postMessage')||m.includes('youtube.com')||m.includes('ERR_BLOCKED')))return;oe.apply(console,arguments)}})();
|
||||||
var tag=document.createElement('script');tag.src='https://www.youtube.com/iframe_api';document.head.appendChild(tag);
|
var tag=document.createElement('script');tag.src='https://www.youtube.com/iframe_api';document.head.appendChild(tag);
|
||||||
var songs=[],player=null,playerReady=false,isPlaying=false,currentIndex=-1,progressInterval=null;
|
var songs=[],player=null,playerReady=false,isPlaying=false,currentIndex=-1,progressInterval=null;
|
||||||
document.getElementById('searchInput').onkeypress=e=>{if(e.key==='Enter')doSearch()};
|
document.getElementById('searchInput').onkeypress=e=>{if(e.key==='Enter')doSearch()};
|
||||||
|
|||||||
Reference in New Issue
Block a user