]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[xtube] Add support for embedded URLs (closes #14417)
authorSergey M․ <dstftw@gmail.com>
Fri, 6 Oct 2017 16:53:32 +0000 (23:53 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 6 Oct 2017 16:53:32 +0000 (23:53 +0700)
youtube_dl/extractor/xtube.py

index bea9b87ad4123f90bcf554d7115cfd35d431afe6..c6c0b3291c8320064fa0a7529be5b5d78f14461c 100644 (file)
@@ -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>[^/?&#]+)
                     '''
@@ -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):