mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[extractor] Add convinience function _yes_playlist
				
					
				
			This commit is contained in:
		| @@ -405,17 +405,12 @@ class NetEaseMusicProgramIE(NetEaseMusicBaseIE): | ||||
|         name = info['name'] | ||||
|         description = info['description'] | ||||
|  | ||||
|         if not info['songs'] or self.get_param('noplaylist'): | ||||
|             if info['songs']: | ||||
|                 self.to_screen( | ||||
|                     'Downloading just the main audio %s because of --no-playlist' | ||||
|                     % info['mainSong']['id']) | ||||
|  | ||||
|         if not self._yes_playlist(info['songs'] and program_id, info['mainSong']['id']): | ||||
|             formats = self.extract_formats(info['mainSong']) | ||||
|             self._sort_formats(formats) | ||||
|  | ||||
|             return { | ||||
|                 'id': program_id, | ||||
|                 'id': info['mainSong']['id'], | ||||
|                 'title': name, | ||||
|                 'description': description, | ||||
|                 'creator': info['dj']['brand'], | ||||
| @@ -425,10 +420,6 @@ class NetEaseMusicProgramIE(NetEaseMusicBaseIE): | ||||
|                 'formats': formats, | ||||
|             } | ||||
|  | ||||
|         self.to_screen( | ||||
|             'Downloading playlist %s - add --no-playlist to just download the main audio %s' | ||||
|             % (program_id, info['mainSong']['id'])) | ||||
|  | ||||
|         song_ids = [info['mainSong']['id']] | ||||
|         song_ids.extend([song['id'] for song in info['songs']]) | ||||
|         entries = [ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan