mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
17 lines
603 B
TypeScript
17 lines
603 B
TypeScript
import { PluginMetadata } from '@/plugins/plugin'
|
|
import { DownloadVideoOutput } from '../../../../components/video/download/types'
|
|
import { aria2Input } from './aria2-input'
|
|
import { aria2Rpc } from './aria2-rpc'
|
|
|
|
export const plugin: PluginMetadata = {
|
|
name: 'downloadVideo.outputs.aria2',
|
|
displayName: '下载视频 - aria2 输出支持',
|
|
description: '为下载视频增加 aria2 文件导出和 RPC 输出支持.',
|
|
setup: ({ addData }) => {
|
|
addData('downloadVideo.outputs', (outputs: DownloadVideoOutput[]) => {
|
|
outputs.push(aria2Input)
|
|
outputs.push(aria2Rpc)
|
|
})
|
|
},
|
|
}
|