Tweak ytdl args a bit
Almost there
This commit is contained in:
		
							
								
								
									
										11
									
								
								badwitch.py
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								badwitch.py
									
									
									
									
									
								
							| @@ -71,9 +71,14 @@ class Library: | |||||||
|                     continue |                     continue | ||||||
|                 # Download the song |                 # Download the song | ||||||
|                 ytdl_opts = { |                 ytdl_opts = { | ||||||
|                         'audio-format': 'best', |                         'format': 'bestaudio', | ||||||
|                         'x' |                         'postprocessors': [{ | ||||||
|                         'playlist-items': 1 |                             'key': 'FFmpegExtractAudio', | ||||||
|  |                             'preferredcodec': 'opus', | ||||||
|  |                             'preferredquality': '192' | ||||||
|  |                             }], | ||||||
|  |                         'extract_audio': True, | ||||||
|  |                         'playlist_items': 1, | ||||||
|                         } |                         } | ||||||
|                 with youtube_dl.YoutubeDL(ytdl_opts) as ydl: |                 with youtube_dl.YoutubeDL(ytdl_opts) as ydl: | ||||||
|                     ydl.download([songcontent['source']]) |                     ydl.download([songcontent['source']]) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user