Skip to content

best way to save what you love

Merge branch 'current' into instagram-stories

dumbmoronf7e0871a8ad0
diff --cc src/modules/processing/servicesPatternTesters.js
index cd573763,019aa5da..89d0f03f
--- a/src/modules/processing/servicesPatternTesters.js
+++ b/src/modules/processing/servicesPatternTesters.js
@@@ -26,12 -26,15 +26,16 @@@ export const testers =
"soundcloud": (patternMatch) => (patternMatch["author"]?.length <= 25 && patternMatch["song"]?.length <= 255)
|| (patternMatch["shortLink"] && patternMatch["shortLink"].length <= 32),
- "instagram": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 12),
+ "instagram": (patternMatch) => (patternMatch.postId?.length <= 12)
+ || (patternMatch.username?.length <= 30 && patternMatch.storyId?.length <= 24),
-
+
"vine": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 12),
-
+
"pinterest": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 128),
- "streamable": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length === 6)
+ "streamable": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length === 6),
+
+ "twitch": (patternMatch) => ((patternMatch["channel"] && patternMatch["clip"] && patternMatch["clip"].length <= 100)),
+
+ "rutube": (patternMatch) => ((patternMatch["id"] && patternMatch["id"].length === 32)),
}