Skip to content

Commit

Permalink
temporarily disable sponsorblock by default pending #338
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed Feb 18, 2023
1 parent e75b446 commit 35678e3
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions tubesync/sync/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,17 @@ def hook(event):
else:
log.warn(f'[youtube-dl] unknown event: {str(event)}')
hook.download_progress = 0

postprocessors = []
postprocessors.append({
'key': 'FFmpegMetadata',
'add_chapters': True,
'add_metadata': True
})
# Pending configuration options from PR #338
#postprocessors.append({
# 'key': 'SponsorBlock',
# 'categories': [sponsor_categories]
#})
opts = get_yt_opts()
opts.update({
'format': media_format,
Expand All @@ -109,14 +119,7 @@ def hook(event):
'quiet': True,
'progress_hooks': [hook],
'writeinfojson': info_json,
'postprocessors': [{
'key': 'SponsorBlock',
'categories': [sponsor_categories]
},{
'key': 'FFmpegMetadata',
'add_chapters': True,
'add_metadata': True
}]
'postprocessors': postprocessors,
})
with yt_dlp.YoutubeDL(opts) as y:
try:
Expand Down

0 comments on commit 35678e3

Please sign in to comment.