about summary refs log tree commit diff
path: root/youtube_dl/extractor/bloomberg.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-05-12 20:05:43 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-05-12 20:08:42 +0800
commita3fa6024d676ec20a06fe618f5c3d6e064f49336 (patch)
tree0b1c8d8b9e729122fb89c51eba538a09a7da358f /youtube_dl/extractor/bloomberg.py
parent1b405bb47d91119cc612a90d26f27f2b93f7c7b4 (diff)
downloadyoutube-dl-a3fa6024d676ec20a06fe618f5c3d6e064f49336.tar.gz
youtube-dl-a3fa6024d676ec20a06fe618f5c3d6e064f49336.tar.xz
youtube-dl-a3fa6024d676ec20a06fe618f5c3d6e064f49336.zip
[bloomberg] Fix test_Bloomberg
In this test case, sometimes HLS is the best format while sometimes HDS
is. To prevent occasional test failures, force HDS to be the best
format. In the past, testing against HDS formats causes the same error
as #9214, which is fixed as #9377 landed.
Diffstat (limited to 'youtube_dl/extractor/bloomberg.py')
-rw-r--r--youtube_dl/extractor/bloomberg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/bloomberg.py b/youtube_dl/extractor/bloomberg.py
index 13343bc25..bd538be50 100644
--- a/youtube_dl/extractor/bloomberg.py
+++ b/youtube_dl/extractor/bloomberg.py
@@ -17,6 +17,9 @@ class BloombergIE(InfoExtractor):
             'title': 'Shah\'s Presentation on Foreign-Exchange Strategies',
             'description': 'md5:a8ba0302912d03d246979735c17d2761',
         },
+        'params': {
+            'format': 'best[format_id^=hds]',
+        },
     }, {
         'url': 'http://www.bloomberg.com/news/articles/2015-11-12/five-strange-things-that-have-been-happening-in-financial-markets',
         'only_matching': True,