mirror of
https://github.com/wukko/cobalt.git
synced 2025-01-12 20:25:06 +01:00
reddit: remove the rest of references to title
This commit is contained in:
parent
7468b803fb
commit
3ca65e0daf
2 changed files with 2 additions and 4 deletions
|
@ -67,8 +67,7 @@ export default async function(host, patternMatch, url, lang, obj) {
|
||||||
case "reddit":
|
case "reddit":
|
||||||
r = await reddit({
|
r = await reddit({
|
||||||
sub: patternMatch["sub"],
|
sub: patternMatch["sub"],
|
||||||
id: patternMatch["id"],
|
id: patternMatch["id"]
|
||||||
title: patternMatch["title"]
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "douyin":
|
case "douyin":
|
||||||
|
|
|
@ -8,8 +8,7 @@ export const testers = {
|
||||||
|
|
||||||
"youtube": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 11),
|
"youtube": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 11),
|
||||||
|
|
||||||
"reddit": (patternMatch) => (patternMatch["sub"] && patternMatch["id"] && patternMatch["title"]
|
"reddit": (patternMatch) => (patternMatch.sub?.length <= 22 && patternMatch.id?.length <= 10),
|
||||||
&& patternMatch["sub"].length <= 22 && patternMatch["id"].length <= 10 && patternMatch["title"].length <= 96),
|
|
||||||
|
|
||||||
"tiktok": (patternMatch) => ((patternMatch["user"] && patternMatch["postId"] && patternMatch["postId"].length <= 21)
|
"tiktok": (patternMatch) => ((patternMatch["user"] && patternMatch["postId"] && patternMatch["postId"].length <= 21)
|
||||||
|| (patternMatch["id"] && patternMatch["id"].length <= 13)),
|
|| (patternMatch["id"] && patternMatch["id"].length <= 13)),
|
||||||
|
|
Loading…
Reference in a new issue