Skip to content

Commit

Permalink
[peertube] Detect embed URLs in generic extraction (closes #21666)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and meunierd committed Dec 27, 2019
1 parent 68422af commit 507856d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/peertube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<',
Expand Down

0 comments on commit 507856d

Please sign in to comment.