formating
This commit is contained in:
parent
c927f32aa6
commit
ce14167cee
|
@ -102,11 +102,7 @@ def download_media(url, media_format, extension, output_file, info_json,
|
||||||
else:
|
else:
|
||||||
log.warn(f'[youtube-dl] unknown event: {str(event)}')
|
log.warn(f'[youtube-dl] unknown event: {str(event)}')
|
||||||
hook.download_progress = 0
|
hook.download_progress = 0
|
||||||
# Pending configuration options from PR #338
|
|
||||||
#postprocessors.append({
|
|
||||||
# 'key': 'SponsorBlock',
|
|
||||||
# 'categories': [sponsor_categories]
|
|
||||||
#})
|
|
||||||
opts = get_yt_opts()
|
opts = get_yt_opts()
|
||||||
opts.update({
|
opts.update({
|
||||||
'format': media_format,
|
'format': media_format,
|
||||||
|
@ -118,13 +114,13 @@ def download_media(url, media_format, extension, output_file, info_json,
|
||||||
'postprocessors': []
|
'postprocessors': []
|
||||||
}
|
}
|
||||||
sbopt = {
|
sbopt = {
|
||||||
'key': 'SponsorBlock',
|
'key': 'SponsorBlock',
|
||||||
'categories': [sponsor_categories]
|
'categories': [sponsor_categories]
|
||||||
}
|
}
|
||||||
ffmdopt = {
|
ffmdopt = {
|
||||||
'key': 'FFmpegMetadata',
|
'key': 'FFmpegMetadata',
|
||||||
'add_chapters': True,
|
'add_chapters': True,
|
||||||
'add_metadata': True
|
'add_metadata': True
|
||||||
}
|
}
|
||||||
|
|
||||||
opts = get_yt_opts()
|
opts = get_yt_opts()
|
||||||
|
|
Loading…
Reference in New Issue