From df0c81513e0bb37986d00c532a5ad8cef31a24ea Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 1 Apr 2021 17:13:35 +0530 Subject: [PATCH] [generic] Detect Invidious' link element (Closes #195) --- yt_dlp/extractor/generic.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py index 9e5645d72..54cba2f6b 100644 --- a/yt_dlp/extractor/generic.py +++ b/yt_dlp/extractor/generic.py @@ -2659,6 +2659,15 @@ class GenericIE(InfoExtractor): if vid_me_embed_url is not None: return self.url_result(vid_me_embed_url, 'Vidme') + # Invidious Instances + # https://github.com/yt-dlp/yt-dlp/issues/195 + # https://github.com/iv-org/invidious/pull/1730 + youtube_url = self._search_regex( + r'