mirror of
https://gitlab.com/vyla-entertainment/TV.git
synced 2026-11-21 15:35:37 -05:00
stable build
This commit is contained in:
8
www/js/main.js
Normal file
8
www/js/main.js
Normal file
@@ -0,0 +1,8 @@
|
||||
(async () => {
|
||||
rowsEl.innerHTML = SK.rows(4);
|
||||
const [m, t] = await Promise.all([api('/genre/movie/list'), api('/genre/tv/list')]);
|
||||
MG = m.genres || []; TG = t.genres || [];
|
||||
[...MG, ...TG].forEach(g => G[g.id] = g.name);
|
||||
if (!MG.length || !TG.length) { rowsEl.innerHTML = '<p style="padding:40vh var(--pad)">Could not reach TMDB.</p>'; return }
|
||||
await go('discover');
|
||||
})();
|
||||
Reference in New Issue
Block a user