rutube: add support for shorts and yappy (#471)

* rutube: add support for shorts and yappy

* tests: add rutube yappy and shorts tests

Closes #465
Closes #466
This commit is contained in:
wukko
2024-04-29 21:36:35 +06:00
committed by GitHub
parent 8f27c86a43
commit f20f87bd1d
5 changed files with 56 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ export const testers = {
patternMatch.sub?.length <= 22 && patternMatch.id?.length <= 10,
"rutube": (patternMatch) =>
patternMatch.id?.length === 32,
patternMatch.id?.length === 32 || patternMatch.yappyId?.length === 32,
"soundcloud": (patternMatch) =>
(patternMatch.author?.length <= 255 && patternMatch.song?.length <= 255)