summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsyeopite <70992037+syeopite@users.noreply.github.com>2021-09-25 02:47:52 +0000
committerGitHub <noreply@github.com>2021-09-25 02:47:52 +0000
commit6d68fbc31d54e2561e00e88ab5006d4ed4da26d7 (patch)
tree613a1515b805099f1352675ea7140a57ee2dede4
parentd97e128dc04a8e244f4cf577c9680dac736a18ee (diff)
downloadinvidious-6d68fbc31d54e2561e00e88ab5006d4ed4da26d7.tar.gz
invidious-6d68fbc31d54e2561e00e88ab5006d4ed4da26d7.tar.bz2
invidious-6d68fbc31d54e2561e00e88ab5006d4ed4da26d7.zip
Fix livestream regex regression caused by #2271
Closes #2352 Special thanks to @WaywardHeart for finding this issue!
-rw-r--r--src/invidious/routes/api/manifest.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/routes/api/manifest.cr b/src/invidious/routes/api/manifest.cr
index 93bee55c..f8963587 100644
--- a/src/invidious/routes/api/manifest.cr
+++ b/src/invidious/routes/api/manifest.cr
@@ -160,7 +160,7 @@ module Invidious::Routes::API::Manifest
manifest = response.body
if local
- manifest = manifest.gsub(/^https:\/\/r\d---.{11}\.c\.youtube\.com[^\n]*/m) do |match|
+ manifest = manifest.gsub(/^https:\/\/\w+---.{11}\.c\.youtube\.com[^\n]*/m) do |match|
path = URI.parse(match).path
path = path.lchop("/videoplayback/")