Skip to content

Commit

Permalink
Fix test_youtube_playlist_noplaylist
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf committed Jan 29, 2022
1 parent 5014bd6 commit 57044ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_youtube_lists.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

# Allow direct execution
Expand All @@ -9,11 +10,10 @@

from test.helper import FakeYDL


from youtube_dl.extractor import (
YoutubeIE,
YoutubePlaylistIE,
YoutubeTabIE,
YoutubeIE,
)


Expand All @@ -25,9 +25,11 @@ def assertIsPlaylist(self, info):
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):
Expand Down

0 comments on commit 57044ea

Please sign in to comment.