[youtube] Add more invidious instances to _VALID_URL (#21694)
authorgeditorit <52565706+geditorit@users.noreply.github.com>
Sat, 13 Jul 2019 18:23:22 +0000 (01:23 +0700)
committerSergey M <dstftw@gmail.com>
Sat, 13 Jul 2019 18:23:22 +0000 (01:23 +0700)
youtube_dl/extractor/youtube.py

index 8a3c502ba480b62b07bd447a76649437287826d0..762611b89f5982c2c8273a07ffedfae0cba813c2 100644 (file)
@@ -371,10 +371,14 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                             (?:www\.)?hooktube\.com/|
                             (?:www\.)?yourepeat\.com/|
                             tube\.majestyc\.net/|
+                            # Invidious instances taken from https://github.com/omarroth/invidious/wiki/Invidious-Instances
                             (?:(?:www|dev)\.)?invidio\.us/|
-                            (?:www\.)?invidiou\.sh/|
-                            (?:www\.)?invidious\.snopyta\.org/|
+                            (?:(?:www|no)\.)?invidiou\.sh/|
+                            (?:(?:www|fi|de)\.)?invidious\.snopyta\.org/|
                             (?:www\.)?invidious\.kabi\.tk/|
+                            (?:www\.)?invidious\.enkirton\.net/|
+                            (?:www\.)?invidious\.13ad\.de/|
+                            (?:www\.)?tube\.poal\.co/|
                             (?:www\.)?vid\.wxzm\.sx/|
                             youtube\.googleapis\.com/)                        # the various hostnames, with wildcard subdomains
                          (?:.*?\#/)?                                          # handle anchor (#/) redirect urls