aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_youtube_lists.py
diff options
context:
space:
mode:
authordf <[email protected]>2021-10-28 15:55:38 +0100
committerdirkf <[email protected]>2022-01-29 20:00:21 +0000
commit57044eacebc6f2f3cd83c345e1b6e659a22e4773 (patch)
tree74b53ed4688dd65d0aa8f0adb929300e7bf14357 /test/test_youtube_lists.py
parent5014bd67c22b421207b2650d4dc874b95b36dda1 (diff)
downloadyoutube-dl-57044eacebc6f2f3cd83c345e1b6e659a22e4773.tar.gz
youtube-dl-57044eacebc6f2f3cd83c345e1b6e659a22e4773.zip
Fix test_youtube_playlist_noplaylist
Diffstat (limited to 'test/test_youtube_lists.py')
-rw-r--r--test/test_youtube_lists.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_youtube_lists.py b/test/test_youtube_lists.py
index cf2fdf14f..72820972e 100644
--- a/test/test_youtube_lists.py
+++ b/test/test_youtube_lists.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
from __future__ import unicode_literals
# Allow direct execution
@@ -9,11 +10,10 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test.helper import FakeYDL
-
from youtube_dl.extractor import (
+ YoutubeIE,
YoutubePlaylistIE,
YoutubeTabIE,
- YoutubeIE,
)
@@ -25,9 +25,11 @@ class TestYoutubeLists(unittest.TestCase):
def test_youtube_playlist_noplaylist(self):
dl = FakeYDL()
dl.params['noplaylist'] = True
+ dl.params['format'] = 'best'
ie = YoutubePlaylistIE(dl)
result = ie.extract('https://www.youtube.com/watch?v=FXxLjLQi3Fg&list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re')
self.assertEqual(result['_type'], 'url')
+ result = dl.extract_info(result['url'], download=False, ie_key=result.get('ie_key'), process=False)
self.assertEqual(YoutubeIE().extract_id(result['url']), 'FXxLjLQi3Fg')
def test_youtube_course(self):