From 3d6a3aac04d95f6a806ee50b63b2260d85e42481 Mon Sep 17 00:00:00 2001 From: the1812 Date: Thu, 19 Jan 2023 21:16:09 +0800 Subject: [PATCH] Allow downloadSubtitle in bangumi --- registry/lib/components/video/subtitle/download/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/lib/components/video/subtitle/download/index.ts b/registry/lib/components/video/subtitle/download/index.ts index 8d6453ad6..24086ae21 100644 --- a/registry/lib/components/video/subtitle/download/index.ts +++ b/registry/lib/components/video/subtitle/download/index.ts @@ -2,7 +2,7 @@ import { defineComponentMetadata } from '@/components/define' import { PackageEntry } from '@/core/download' import { hasVideo } from '@/core/spin-query' import { Toast } from '@/core/toast' -import { videoUrls } from '@/core/utils/urls' +import { videoAndBangumiUrls } from '@/core/utils/urls' import { DownloadVideoAssets } from '../../download/types' import { getBlobByType, SubtitleDownloadType } from './utils' @@ -14,7 +14,7 @@ export const component = defineComponentMetadata({ }, tags: [componentsTags.video], entry: none, - urlInclude: videoUrls, + urlInclude: videoAndBangumiUrls, widget: { condition: hasVideo, component: () => import('./DownloadSubtitle.vue').then(m => m.default),