]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[myvi:embed] Extend _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Thu, 9 Jul 2015 18:07:26 +0000 (00:07 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 9 Jul 2015 18:07:26 +0000 (00:07 +0600)
youtube_dl/extractor/myvi.py

index 9f4330f506ae594b35a4052147c931cf862b218a..a14a5365b4889792651d8f45503491e76ec2971d 100644 (file)
@@ -7,7 +7,7 @@ from .vimple import SprutoBaseIE
 class MyviEmbedIE(SprutoBaseIE):
     _VALID_URL = r'''(?x)
                     https?://
-                        myvi\.ru/player/
+                        myvi\.(?:ru/player|tv)/
                             (?:
                                 (?:
                                     embed/html|
@@ -33,6 +33,9 @@ class MyviEmbedIE(SprutoBaseIE):
     }, {
         'url': 'http://myvi.ru/player/api/Video/Get/oOy4euHA6LVwNNAjhD9_Jq5Ha2Qf0rtVMVFMAZav8wObeRTZaCATzucDQIDph8hQU0',
         'only_matching': True,
+    }, {
+        'url': 'http://myvi.tv/embed/html/oTGTNWdyz4Zwy_u1nraolwZ1odenTd9WkTnRfIL9y8VOgHYqOHApE575x4_xxS9Vn0?ap=0',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):