aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-07-06 00:42:54 +0700
committerSergey M․ <dstftw@gmail.com>2019-07-06 00:50:56 +0700
commitd18003a1419517cad49d4c5e8acb8255dd5422df (patch)
treeb0bcbe9ed2e57a53693210e45aa33c0f52b94fb1 /youtube_dl
parentd1850c1a975de37b28c39afdce2e5ea56dec032a (diff)
[peertube] Detect embed URLs in generic extraction (closes #21666)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/peertube.py2
1 files changed, 1 insertions, 1 deletions
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<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<',