mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-12-22 09:50:15 +00:00
fix _check_get_sb for per channel deactivate
This commit is contained in:
parent
7231b5d245
commit
c84fbdfb9c
@ -417,16 +417,15 @@ class YoutubeVideo(YouTubeItem, YoutubeSubtitle):
|
||||
|
||||
def _check_get_sb(self):
|
||||
"""check if need to run sponsor block"""
|
||||
integrate = False
|
||||
if self.config["downloads"]["integrate_sponsorblock"]:
|
||||
integrate = True
|
||||
integrate = self.config["downloads"]["integrate_sponsorblock"]
|
||||
|
||||
if self.video_overwrites:
|
||||
single_overwrite = self.video_overwrites.get(self.youtube_id)
|
||||
if not single_overwrite:
|
||||
return integrate
|
||||
|
||||
integrate = single_overwrite.get("integrate_sponsorblock", False)
|
||||
if "integrate_sponsorblock" in single_overwrite:
|
||||
return single_overwrite.get("integrate_sponsorblock")
|
||||
|
||||
return integrate
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user