]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[myvi] Extend _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Thu, 8 Feb 2018 16:02:05 +0000 (23:02 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 8 Feb 2018 16:02:05 +0000 (23:02 +0700)
youtube_dl/extractor/myvi.py

index 0cf9dd06a44a3cf0406e6345e2ab79744c8aeab6..75d286365573f050d83b2fe420efe2ea8776d6b8 100644 (file)
@@ -12,14 +12,18 @@ class MyviIE(SprutoBaseIE):
                         (?:
                             https?://
                                 (?:www\.)?
-                                myvi\.(?:ru/player|tv)/
+                                myvi\.
                                 (?:
+                                    (?:ru/player|tv)/
                                     (?:
-                                        embed/html|
-                                        flash|
-                                        api/Video/Get
-                                    )/|
-                                    content/preloader\.swf\?.*\bid=
+                                        (?:
+                                            embed/html|
+                                            flash|
+                                            api/Video/Get
+                                        )/|
+                                        content/preloader\.swf\?.*\bid=
+                                    )|
+                                    ru/watch/
                                 )|
                             myvi:
                         )
@@ -47,6 +51,9 @@ class MyviIE(SprutoBaseIE):
     }, {
         'url': 'http://myvi.ru/player/flash/ocp2qZrHI-eZnHKQBK4cZV60hslH8LALnk0uBfKsB-Q4WnY26SeGoYPi8HWHxu0O30',
         'only_matching': True,
+    }, {
+        'url': 'https://www.myvi.ru/watch/YwbqszQynUaHPn_s82sx0Q2',
+        'only_matching': True,
     }, {
         'url': 'myvi:YwbqszQynUaHPn_s82sx0Q2',
         'only_matching': True,