mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +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):
|
def _check_get_sb(self):
|
||||||
"""check if need to run sponsor block"""
|
"""check if need to run sponsor block"""
|
||||||
integrate = False
|
integrate = self.config["downloads"]["integrate_sponsorblock"]
|
||||||
if self.config["downloads"]["integrate_sponsorblock"]:
|
|
||||||
integrate = True
|
|
||||||
|
|
||||||
if self.video_overwrites:
|
if self.video_overwrites:
|
||||||
single_overwrite = self.video_overwrites.get(self.youtube_id)
|
single_overwrite = self.video_overwrites.get(self.youtube_id)
|
||||||
if not single_overwrite:
|
if not single_overwrite:
|
||||||
return integrate
|
return integrate
|
||||||
|
|
||||||
integrate = single_overwrite.get("integrate_sponsorblock", False)
|
if "integrate_sponsorblock" in single_overwrite:
|
||||||
|
return single_overwrite.get("integrate_sponsorblock")
|
||||||
|
|
||||||
return integrate
|
return integrate
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user