1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-10 20:24:33 +01:00

[myvi:embed] Extend _VALID_URL

This commit is contained in:
Sergey M․ 2015-07-10 00:07:26 +06:00
parent 1c20ddc966
commit 83423254cc

View File

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