mirror of
https://github.com/anasty17/mirror-leech-telegram-bot.git
synced 2025-01-09 04:47:34 +08:00
embed-metadata to yt-dlp downloaded files
Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
parent
a657ee30a6
commit
d79097d123
@ -191,12 +191,16 @@ class YoutubeDLHelper:
|
||||
|
||||
await self.__onDownloadStart()
|
||||
|
||||
self.opts['postprocessors'] = [
|
||||
{'add_chapters': True, 'add_infojson': 'if_exists', 'add_metadata': True, 'key': 'FFmpegMetadata'}]
|
||||
|
||||
if qual.startswith('ba/b-'):
|
||||
mp3_info = qual.split('-')
|
||||
qual = mp3_info[0]
|
||||
rate = mp3_info[1]
|
||||
self.opts['postprocessors'] = [
|
||||
{'key': 'FFmpegExtractAudio', 'preferredcodec': 'mp3', 'preferredquality': rate}]
|
||||
self.opts['postprocessors'].append(
|
||||
{'key': 'FFmpegExtractAudio', 'preferredcodec': 'mp3', 'preferredquality': rate})
|
||||
|
||||
self.opts['format'] = qual
|
||||
|
||||
await sync_to_async(self.extractMetaData, link, name, args)
|
||||
|
Loading…
Reference in New Issue
Block a user