From dc42220f096829ddc5b897c42e1ce09efb57f137 Mon Sep 17 00:00:00 2001 From: bytedream Date: Tue, 19 Jul 2022 10:07:21 +0200 Subject: [PATCH] Fix streamtape --- src/match/matches.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/match/matches.ts b/src/match/matches.ts index 807214e..9861f91 100644 --- a/src/match/matches.ts +++ b/src/match/matches.ts @@ -121,10 +121,10 @@ class Streamtape implements Match { domains = [ 'streamtape.com' ] - regex = new RegExp(/\/get_video\S*(?=')/gm) + regex = new RegExp(/id=.*(?=')/gm) async match(match: RegExpMatchArray): Promise { - return `https://streamtape.com${match[0]}` + return `https://streamtape.com/get_video?${match.reverse()[0]}` } }