From: Sergey M․ Date: Fri, 5 Jul 2019 17:42:54 +0000 (+0700) Subject: [peertube] Detect embed URLs in generic extraction (closes #21666) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=d18003a1419517cad49d4c5e8acb8255dd5422df;p=youtube-dl [peertube] Detect embed URLs in generic extraction (closes #21666) --- diff --git a/youtube_dl/extractor/peertube.py b/youtube_dl/extractor/peertube.py index e03c3d1d3..b50543e32 100644 --- a/youtube_dl/extractor/peertube.py +++ b/youtube_dl/extractor/peertube.py @@ -168,7 +168,7 @@ class PeerTubeIE(InfoExtractor): @staticmethod def _extract_peertube_url(webpage, source_url): mobj = re.match( - r'https?://(?P[^/]+)/videos/watch/(?P%s)' + r'https?://(?P[^/]+)/videos/(?:watch|embed)/(?P%s)' % PeerTubeIE._UUID_RE, source_url) if mobj and any(p in webpage for p in ( 'PeerTube<',