diff options
author | Sergey M․ <[email protected]> | 2019-07-06 00:42:54 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2019-07-06 00:50:56 +0700 |
commit | d18003a1419517cad49d4c5e8acb8255dd5422df (patch) | |
tree | b0bcbe9ed2e57a53693210e45aa33c0f52b94fb1 | |
parent | d1850c1a975de37b28c39afdce2e5ea56dec032a (diff) | |
download | youtube-dl-d18003a1419517cad49d4c5e8acb8255dd5422df.tar.gz youtube-dl-d18003a1419517cad49d4c5e8acb8255dd5422df.zip |
[peertube] Detect embed URLs in generic extraction (closes #21666)
-rw-r--r-- | youtube_dl/extractor/peertube.py | 2 |
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<', |