Skip to content

Commit

Permalink
fix typo in sponsorblock categories, remove dupe metadata flags, rela…
Browse files Browse the repository at this point in the history
…ted to #362
  • Loading branch information
meeb committed Dec 12, 2023
1 parent 4fdd172 commit 7384c00
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tubesync/sync/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,16 @@ def hook(event):
sponsor_categories = []
sbopt = {
'key': 'SponsorBlock',
'categories': [sponsor_categories]
'categories': sponsor_categories
}
ffmdopt = {
'key': 'FFmpegMetadata',
'add_chapters': True,
'add_metadata': True
'add_chapters': embed_metadata,
'add_metadata': embed_metadata
}
opts = get_yt_opts()
if embed_thumbnail:
ytopts['postprocessors'].append({'key': 'EmbedThumbnail'})
if embed_metadata:
ffmdopt["add_metadata"] = True
if skip_sponsors:
ytopts['postprocessors'].append(sbopt)
ytopts['postprocessors'].append(ffmdopt)
Expand Down

0 comments on commit 7384c00

Please sign in to comment.