Initial commit - Virome API

This commit is contained in:
Your Name
2026-01-10 15:01:21 +01:00
parent 1ae246c7e4
commit 518445dee1
3 changed files with 14 additions and 1 deletions

View File

@@ -8,6 +8,10 @@
A music API built with Deno for searching, streaming, and exploring music data from YouTube Music, YouTube, and Last.fm.
</p>
<p align="center">
<a href="https://verome-api.deno.dev/">Live Demo</a>
</p>
---
## Overview

View File

@@ -10,5 +10,13 @@
},
"compilerOptions": {
"strict": true
},
"deploy": {
"project": "85252de3-9b36-4d8b-b250-e491b4131838",
"exclude": [
"**/node_modules"
],
"include": [],
"entrypoint": "mod.ts"
}
}

1
ui.ts
View File

@@ -229,6 +229,7 @@ export const html = `<!DOCTYPE html>
</div>
<div id="ytplayer"></div>
<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 songs=[],player=null,playerReady=false,isPlaying=false,currentIndex=-1,progressInterval=null;
document.getElementById('searchInput').onkeypress=e=>{if(e.key==='Enter')doSearch()};