|
|
@ -412,16 +412,18 @@ class YoutubeVideo(YouTubeItem, YoutubeSubtitle):
|
|
|
|
|
|
|
|
|
|
|
|
def _check_get_sb(self):
|
|
|
|
def _check_get_sb(self):
|
|
|
|
"""check if need to run sponsor block"""
|
|
|
|
"""check if need to run sponsor block"""
|
|
|
|
|
|
|
|
integrate = False
|
|
|
|
if self.config["downloads"]["integrate_sponsorblock"]:
|
|
|
|
if self.config["downloads"]["integrate_sponsorblock"]:
|
|
|
|
return True
|
|
|
|
integrate = True
|
|
|
|
try:
|
|
|
|
|
|
|
|
single_overwrite = self.video_overwrites[self.youtube_id]
|
|
|
|
if self.video_overwrites:
|
|
|
|
_ = single_overwrite["integrate_sponsorblock"]
|
|
|
|
single_overwrite = self.video_overwrites.get(self.youtube_id)
|
|
|
|
return True
|
|
|
|
if not single_overwrite:
|
|
|
|
except KeyError:
|
|
|
|
return integrate
|
|
|
|
return False
|
|
|
|
|
|
|
|
|
|
|
|
integrate = single_overwrite.get("integrate_sponsorblock", False)
|
|
|
|
|
|
|
|
|
|
|
|
return False
|
|
|
|
return integrate
|
|
|
|
|
|
|
|
|
|
|
|
def _process_youtube_meta(self):
|
|
|
|
def _process_youtube_meta(self):
|
|
|
|
"""extract relevant fields from youtube"""
|
|
|
|
"""extract relevant fields from youtube"""
|
|
|
|