Skip to content

A feature-rich command-line audio/video downloader

[ie/YandexDisk] Support 360 URLs (#13935)

Sojiroha6df5e8a58d6
diff --git a/yt_dlp/extractor/yandexdisk.py b/yt_dlp/extractor/yandexdisk.py
index 3214816701..654858fcca 100644
--- a/yt_dlp/extractor/yandexdisk.py
+++ b/yt_dlp/extractor/yandexdisk.py
@@ -16,7 +16,7 @@ class YandexDiskIE(InfoExtractor):
_VALID_URL = r'''(?x)https?://
(?P<domain>
yadi\.sk|
- disk\.yandex\.
+ disk\.(?:360\.)?yandex\.
(?:
az|
by|
@@ -51,6 +51,9 @@ class YandexDiskIE(InfoExtractor):
}, {
'url': 'https://yadi.sk/public?hash=5DZ296JK9GWCLp02f6jrObjnctjRxMs8L6%2B%2FuhNqk38%3D',
'only_matching': True,
+ }, {
+ 'url': 'https://disk.360.yandex.ru/i/TM2xsIVsgjY4uw',
+ 'only_matching': True,
}]
def _real_extract(self, url):