mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-09 21:46:45 +03:00
Compare strings
This commit is contained in:
@@ -118,7 +118,7 @@ class YtLoungeApi(pyytlounge.YtLoungeApi):
|
|||||||
create_task(self.mute(False, override=True))
|
create_task(self.mute(False, override=True))
|
||||||
elif event_type == "onAdStateChange":
|
elif event_type == "onAdStateChange":
|
||||||
data = args[0]
|
data = args[0]
|
||||||
if data["adState"] == "0" and data["currentTime"] != 0: # Ad is not playing
|
if data["adState"] == "0" and data["currentTime"] != "0": # Ad is not playing
|
||||||
self.logger.info("Ad has ended, unmuting")
|
self.logger.info("Ad has ended, unmuting")
|
||||||
create_task(self.mute(False, override=True))
|
create_task(self.mute(False, override=True))
|
||||||
elif (
|
elif (
|
||||||
|
|||||||
Reference in New Issue
Block a user