Skip to content

Commit 58ee7e0

Browse files
authored
Youtube: match live urls (#550)
* youtube: match `live` urls * youtube: shorts - fix consents redirect
1 parent ba49db8 commit 58ee7e0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

plugins/domains/youtube.com/youtube.shorts.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ export default {
88

99
re: /^https?:\/\/www\.youtube\.com\/shorts\/([a-zA-Z0-9_-]+)/i,
1010

11-
// The issue with EU consent redirect needs to be bypassed
12-
// by avoiding htmlparser-dependent plugins and mixins.
13-
14-
notPlugin: !CONFIG.providerOptions?.youtube?.fix_shorts_in_eu,
15-
1611
mixins: [
1712
"domain-icon",
1813
"oembed-title",

plugins/domains/youtube.com/youtube.video.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default {
99
/^https?:\/\/youtu.be\/([a-zA-Z0-9_-]+)/i,
1010
/^https?:\/\/m\.youtube\.com\/#\/watch\?(?:[^&]+&)*v=([a-zA-Z0-9_-]+)/i,
1111
/^https?:\/\/www\.youtube\.com\/embed\/([a-zA-Z0-9_-]+)/i,
12+
/^https?:\/\/www\.youtube\.com\/live\/([a-zA-Z0-9_-]+)/i,
1213
/^https?:\/\/www\.youtube\.com\/v\/([a-zA-Z0-9_-]+)/i,
1314
/^https?:\/\/www\.youtube\.com\/user\/[a-zA-Z0-9_-]+\/?\?v=([a-zA-Z0-9_-]+)/i,
1415
/^https?:\/\/www\.youtube-nocookie\.com\/(?:v|embed)\/([a-zA-Z0-9_-]+)/i

0 commit comments

Comments
 (0)