diff options
| author | syeopite <70992037+syeopite@users.noreply.github.com> | 2021-09-25 02:47:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-25 02:47:52 +0000 |
| commit | 6d68fbc31d54e2561e00e88ab5006d4ed4da26d7 (patch) | |
| tree | 613a1515b805099f1352675ea7140a57ee2dede4 /src | |
| parent | d97e128dc04a8e244f4cf577c9680dac736a18ee (diff) | |
| download | invidious-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!
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/routes/api/manifest.cr | 2 |
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/") |
