1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-24 04:12:41 +01:00

[myvi] Extend _VALID_URL

This commit is contained in:
Sergey M․ 2018-02-08 23:02:05 +07:00
parent 51b0557d1e
commit ce53320b11
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View 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,