aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-12-12 05:05:52 +0700
committerSergey M․ <dstftw@gmail.com>2020-12-12 05:10:54 +0700
commit56f1c5ad38686c0437924eb51c4b54a5c0c876dc (patch)
tree347ac640c9e55d4e2bd0c2675df0379f7692ddaf /youtube_dl/extractor
parent3a6b8f4edfddfd5221c28a4f9a6dc2a54c5be202 (diff)
[ruutu] Extend _VALID_URL (closes #24839)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/ruutu.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/youtube_dl/extractor/ruutu.py b/youtube_dl/extractor/ruutu.py
index f984040aa..4dbd144bc 100644
--- a/youtube_dl/extractor/ruutu.py
+++ b/youtube_dl/extractor/ruutu.py
@@ -13,7 +13,7 @@ from ..utils import (
class RuutuIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?(?:ruutu|supla)\.fi/(?:video|supla)/(?P<id>\d+)'
+ _VALID_URL = r'https?://(?:www\.)?(?:ruutu|supla)\.fi/(?:video|supla|audio)/(?P<id>\d+)'
_TESTS = [
{
'url': 'http://www.ruutu.fi/video/2058907',
@@ -71,8 +71,15 @@ class RuutuIE(InfoExtractor):
'thumbnail': r're:^https?://.*\.jpg$',
'age_limit': 0,
},
- 'expected_warnings': ['HTTP Error 502: Bad Gateway'],
- }
+ 'expected_warnings': [
+ 'HTTP Error 502: Bad Gateway',
+ 'Failed to download m3u8 information',
+ ],
+ },
+ {
+ 'url': 'http://www.supla.fi/audio/2231370',
+ 'only_matching': True,
+ },
]
def _real_extract(self, url):