started implementing sponsorblock

This commit is contained in:
Hellow2
2023-06-14 12:38:36 +02:00
parent 01f882e0a1
commit 1e49089de9
20 changed files with 632 additions and 371 deletions

View File

@@ -80,6 +80,12 @@ class ConnectionSection(Section):
value="false",
description="Downloads the videos using the given instances."
)
self.SPONSOR_BLOCK = BoolAttribute(
name="use_sponsor_block",
value="true",
description="Use sponsor block to remove adds or simmilar from the youtube videos."
)
self.attribute_list = [
self.USE_TOR,
@@ -87,7 +93,8 @@ class ConnectionSection(Section):
self.CHUNK_SIZE,
self.SHOW_DOWNLOAD_ERRORS_THRESHOLD,
self.INVIDIOUS_INSTANCE,
self.INVIDIOUS_PROXY_VIDEOS
self.INVIDIOUS_PROXY_VIDEOS,
self.SPONSOR_BLOCK
]
super().__init__()