logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: d18003a1419517cad49d4c5e8acb8255dd5422df
parent d1850c1a975de37b28c39afdce2e5ea56dec032a
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat,  6 Jul 2019 00:42:54 +0700

[peertube] Detect embed URLs in generic extraction (closes #21666)

Diffstat:

Myoutube_dl/extractor/peertube.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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<host>[^/]+)/videos/watch/(?P<id>%s)' + r'https?://(?P<host>[^/]+)/videos/(?:watch|embed)/(?P<id>%s)' % PeerTubeIE._UUID_RE, source_url) if mobj and any(p in webpage for p in ( '<title>PeerTube<',