[extractor] Add convinience function _yes_playlist
This commit is contained in:
parent
1f13021eca
commit
f40ee5e9a0
12 changed files with 49 additions and 87 deletions
|
|
@ -207,12 +207,10 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
|
|||
video_id, playlist_id = self._match_valid_url(url).groups()
|
||||
|
||||
if playlist_id:
|
||||
if not self.get_param('noplaylist'):
|
||||
self.to_screen('Downloading playlist %s - add --no-playlist to just download video' % playlist_id)
|
||||
if self._yes_playlist(playlist_id, video_id):
|
||||
return self.url_result(
|
||||
'http://www.dailymotion.com/playlist/' + playlist_id,
|
||||
'DailymotionPlaylist', playlist_id)
|
||||
self.to_screen('Downloading just video %s because of --no-playlist' % video_id)
|
||||
|
||||
password = self.get_param('videopassword')
|
||||
media = self._call_api(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue