Skip to content

Commit

Permalink
[xtube] Add support for embedded URLs (closes #14417)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Oct 6, 2017
1 parent cd6fc19 commit ac93c09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/xtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class XTubeIE(InfoExtractor):
_VALID_URL = r'''(?x)
(?:
xtube:|
https?://(?:www\.)?xtube\.com/(?:watch\.php\?.*\bv=|video-watch/(?P<display_id>[^/]+)-)
https?://(?:www\.)?xtube\.com/(?:watch\.php\?.*\bv=|video-watch/(?:embedded/)?(?P<display_id>[^/]+)-)
)
(?P<id>[^/?&#]+)
'''
Expand Down Expand Up @@ -64,6 +64,9 @@ class XTubeIE(InfoExtractor):
}, {
'url': 'xtube:kVTUy_G222_',
'only_matching': True,
}, {
'url': 'https://www.xtube.com/video-watch/embedded/milf-tara-and-teen-shared-and-cum-covered-extreme-bukkake-32203482?embedsize=big',
'only_matching': True,
}]

def _real_extract(self, url):
Expand Down

0 comments on commit ac93c09

Please sign in to comment.