1
Fork 0
This commit is contained in:
Korbs 2024-07-10 17:19:14 -04:00
parent 50a9cdcc04
commit 512fd61a53
4 changed files with 17 additions and 24 deletions

View file

@ -2,10 +2,6 @@
import i18next,{ t, changeLanguage } from "i18next";
import Base from "@layouts/Default.astro";
import Dialog from '@components/Dialog.astro'
// Configuration
import {
DEFAULT_MEDIA_DATA_PROXY,

View file

@ -14,9 +14,6 @@ import Video from '@components/VideoItem.astro'
const SWV = Astro.url.href.split("watch?v=").pop();
const video = await fetch(DEFAULT_MEDIA_DATA_PROXY + "/api/v1/videos/" + SWV).then((response) => response.json());
const comments = await fetch(DEFAULT_MEDIA_DATA_PROXY + "/api/v1/comments/" + SWV).then((response) => response.json());
const Description = video.description;
const UploadDate = video.published;
const Views = video.viewCount;