Allow downloadSubtitle in bangumi

This commit is contained in:
the1812 2023-01-19 21:16:09 +08:00
parent f3a3ea034c
commit 3d6a3aac04

View File

@ -2,7 +2,7 @@ import { defineComponentMetadata } from '@/components/define'
import { PackageEntry } from '@/core/download' import { PackageEntry } from '@/core/download'
import { hasVideo } from '@/core/spin-query' import { hasVideo } from '@/core/spin-query'
import { Toast } from '@/core/toast' import { Toast } from '@/core/toast'
import { videoUrls } from '@/core/utils/urls' import { videoAndBangumiUrls } from '@/core/utils/urls'
import { DownloadVideoAssets } from '../../download/types' import { DownloadVideoAssets } from '../../download/types'
import { getBlobByType, SubtitleDownloadType } from './utils' import { getBlobByType, SubtitleDownloadType } from './utils'
@ -14,7 +14,7 @@ export const component = defineComponentMetadata({
}, },
tags: [componentsTags.video], tags: [componentsTags.video],
entry: none, entry: none,
urlInclude: videoUrls, urlInclude: videoAndBangumiUrls,
widget: { widget: {
condition: hasVideo, condition: hasVideo,
component: () => import('./DownloadSubtitle.vue').then(m => m.default), component: () => import('./DownloadSubtitle.vue').then(m => m.default),