Sfoglia il codice sorgente

[youtube] Add support for zwearz (Closes #9062)

Sergey M․ 9 anni fa
parent
commit
6d4fc66bfc
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      youtube_dl/extractor/youtube.py

+ 6 - 1
youtube_dl/extractor/youtube.py

@@ -270,7 +270,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                          ))
                          ))
                          |(?:
                          |(?:
                             youtu\.be|                                        # just youtu.be/xxxx
                             youtu\.be|                                        # just youtu.be/xxxx
-                            vid\.plus                                         # or vid.plus/xxxx
+                            vid\.plus|                                        # or vid.plus/xxxx
+                            zwearz\.com/watch|                                # or zwearz.com/watch/xxxx
                          )/
                          )/
                          |(?:www\.)?cleanvideosearch\.com/media/action/yt/watch\?videoId=
                          |(?:www\.)?cleanvideosearch\.com/media/action/yt/watch\?videoId=
                          )
                          )
@@ -758,6 +759,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
             'url': 'http://vid.plus/FlRa-iH7PGw',
             'url': 'http://vid.plus/FlRa-iH7PGw',
             'only_matching': True,
             'only_matching': True,
         },
         },
+        {
+            'url': 'http://zwearz.com/watch/9lWxNJF-ufM/electra-woman-dyna-girl-official-trailer-grace-helbig.html',
+            'only_matching': True,
+        },
         {
         {
             # Title with JS-like syntax "};" (see https://github.com/rg3/youtube-dl/issues/7468)
             # Title with JS-like syntax "};" (see https://github.com/rg3/youtube-dl/issues/7468)
             # Also tests cut-off URL expansion in video description (see
             # Also tests cut-off URL expansion in video description (see