update
This commit is contained in:
parent
50a9cdcc04
commit
512fd61a53
4 changed files with 17 additions and 24 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in a new issue