aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorbopol <bopol@e.email>2021-02-17 22:29:32 +0100
committerGitHub <noreply@github.com>2021-02-18 04:29:32 +0700
commit08c2fbb8443de3949af205d08015e5c6048d2e86 (patch)
tree65e77cea7d2893f71fbdafea7cf82ff5994c419d /youtube_dl/extractor/youtube.py
parent3997efb65ef16dbd8c4792e79e797cbcab0fbec1 (diff)
[youtube] Add support for redirect.invidious.io (#28193)
Co-authored-by: Sergey M <dstftw@gmail.com>
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index e0b15f859..f9e554ca9 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -335,8 +335,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
(?:www\.)?hooktube\.com/|
(?:www\.)?yourepeat\.com/|
tube\.majestyc\.net/|
- # Invidious instances taken from https://github.com/omarroth/invidious/wiki/Invidious-Instances
+ # invidious-redirect websites
+ (?:www\.)?redirect\.invidious\.io/|
(?:(?:www|dev)\.)?invidio\.us/|
+ # Invidious instances taken from https://github.com/iv-org/documentation/blob/master/Invidious-Instances.md
(?:(?:www|no)\.)?invidiou\.sh/|
(?:(?:www|fi)\.)?invidious\.snopyta\.org/|
(?:www\.)?invidious\.kabi\.tk/|
@@ -907,6 +909,15 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'only_matching': True,
},
{
+ 'url': 'https://redirect.invidious.io/watch?v=BaW_jenozKc',
+ 'only_matching': True,
+ },
+ {
+ # from https://nitter.pussthecat.org/YouTube/status/1360363141947944964#m
+ 'url': 'https://redirect.invidious.io/Yh0AhrY9GjA',
+ 'only_matching': True,
+ },
+ {
# DRM protected
'url': 'https://www.youtube.com/watch?v=s7_qI6_mIXc',
'only_matching': True,