Fix livestream regex regression caused by #2271

Closes #2352

Special thanks to @WaywardHeart for finding this issue!
This commit is contained in:
syeopite 2021-09-25 02:47:52 +00:00 committed by GitHub
parent d97e128dc0
commit 6d68fbc31d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/")