fix typo in sponsorblock categories, remove dupe metadata flags, related to #362
This commit is contained in:
parent
4fdd172b05
commit
7384c00713
|
@ -124,18 +124,16 @@ def download_media(url, media_format, extension, output_file, info_json,
|
||||||
sponsor_categories = []
|
sponsor_categories = []
|
||||||
sbopt = {
|
sbopt = {
|
||||||
'key': 'SponsorBlock',
|
'key': 'SponsorBlock',
|
||||||
'categories': [sponsor_categories]
|
'categories': sponsor_categories
|
||||||
}
|
}
|
||||||
ffmdopt = {
|
ffmdopt = {
|
||||||
'key': 'FFmpegMetadata',
|
'key': 'FFmpegMetadata',
|
||||||
'add_chapters': True,
|
'add_chapters': embed_metadata,
|
||||||
'add_metadata': True
|
'add_metadata': embed_metadata
|
||||||
}
|
}
|
||||||
opts = get_yt_opts()
|
opts = get_yt_opts()
|
||||||
if embed_thumbnail:
|
if embed_thumbnail:
|
||||||
ytopts['postprocessors'].append({'key': 'EmbedThumbnail'})
|
ytopts['postprocessors'].append({'key': 'EmbedThumbnail'})
|
||||||
if embed_metadata:
|
|
||||||
ffmdopt["add_metadata"] = True
|
|
||||||
if skip_sponsors:
|
if skip_sponsors:
|
||||||
ytopts['postprocessors'].append(sbopt)
|
ytopts['postprocessors'].append(sbopt)
|
||||||
ytopts['postprocessors'].append(ffmdopt)
|
ytopts['postprocessors'].append(ffmdopt)
|
||||||
|
|
Loading…
Reference in New Issue