mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Allow downloadSubtitle in bangumi
This commit is contained in:
parent
f3a3ea034c
commit
3d6a3aac04
@ -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),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user