3.1
This commit is contained in:
@@ -14,7 +14,7 @@ import tumblr from "./services/tumblr.js";
|
||||
import matchActionDecider from "./sub/matchActionDecider.js";
|
||||
import vimeo from "./services/vimeo.js";
|
||||
|
||||
export default async function (host, patternMatch, url, ip, lang, format, quality, audioFormat, isAudioOnly) {
|
||||
export default async function (host, patternMatch, url, ip, lang, format, quality, audioFormat, isAudioOnly, noWatermark) {
|
||||
try {
|
||||
if (!testers[host]) return apiJSON(0, { t: errorUnsupported(lang) });
|
||||
if (!(testers[host](patternMatch))) throw Error();
|
||||
@@ -70,13 +70,13 @@ export default async function (host, patternMatch, url, ip, lang, format, qualit
|
||||
case "tiktok":
|
||||
r = await tiktok({
|
||||
postId: patternMatch["postId"],
|
||||
id: patternMatch["id"], lang: lang,
|
||||
id: patternMatch["id"], lang: lang, noWatermark: noWatermark
|
||||
});
|
||||
break;
|
||||
case "douyin":
|
||||
r = await douyin({
|
||||
postId: patternMatch["postId"],
|
||||
id: patternMatch["id"], lang: lang,
|
||||
id: patternMatch["id"], lang: lang, noWatermark: noWatermark
|
||||
});
|
||||
break;
|
||||
case "tumblr":
|
||||
|
||||
Reference in New Issue
Block a user