diff --git a/src/services/tiktok.ts b/src/services/tiktok.ts index 576efb7..00728fc 100644 --- a/src/services/tiktok.ts +++ b/src/services/tiktok.ts @@ -3,12 +3,10 @@ import { TikTokAPIResponse, AwemeList } from "../types/Services" export async function grabAwemeId(videoId: string): Promise { // https://vm.tiktok.com/ZMJmVWVpL/ const res = await fetch('https://vm.tiktok.com/' + videoId) - console.log('https://vm.tiktok.com/' + videoId, 'turned to', res.url) const url = new URL(res.url) const awemeIdPattern = /\/@[\w\d_.]+\/(video|photo)\/(\d{19})/ const match = url.pathname.match(awemeIdPattern) - console.log(url.pathname, match) if (match) { return match[2] diff --git a/src/templates/pages/Error.tsx b/src/templates/pages/Error.tsx index 674b9e5..9cb8b16 100644 --- a/src/templates/pages/Error.tsx +++ b/src/templates/pages/Error.tsx @@ -8,7 +8,7 @@ export function ErrorResponse(error: string): JSX.Element { MetaHelper([ { "name": "og:title", - "content": `❌: ${error}` + "content": `❌ ${error}` }, { "name": "theme-color", @@ -16,7 +16,7 @@ export function ErrorResponse(error: string): JSX.Element { }, { "name": "og:description", - "content": "An error occurred while trying to fetch the video." + "content": "An error occurred while trying to fetch the video. Please try again later." }, { "name": "og:site_name",