fix: subtitle
This commit is contained in:
@@ -504,7 +504,7 @@ export const apiTranslate = async ({
|
||||
// 字幕处理/翻译
|
||||
export const apiSubtitle = async ({
|
||||
videoId,
|
||||
fromLang = "en",
|
||||
fromLang = "auto",
|
||||
toLang,
|
||||
events = [],
|
||||
apiSetting,
|
||||
|
||||
@@ -937,12 +937,7 @@ export const handleMicrosoftLangdetect = async (texts = []) => {
|
||||
* @param {*} param0
|
||||
* @returns
|
||||
*/
|
||||
export const handleSubtitle = async ({
|
||||
events,
|
||||
from = "en",
|
||||
to,
|
||||
apiSetting,
|
||||
}) => {
|
||||
export const handleSubtitle = async ({ events, from, to, apiSetting }) => {
|
||||
const { apiType, fetchInterval, fetchLimit, httpTimeout } = apiSetting;
|
||||
|
||||
const [input, init] = await genTransReq({
|
||||
|
||||
Reference in New Issue
Block a user