[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-03-10 12:00:07 +00:00
parent 02c78e8aeb
commit 5d20ca642b
5 changed files with 7 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ class ApiHelper:
[],
True,
) # Return empty list and True to indicate
# that the cache should last forever
# that the cache should last forever
vid_id_hashed = sha256(vid_id.encode("utf-8")).hexdigest()[
:4
] # Hashes video id and gets the first 4 characters

View File

@@ -45,6 +45,7 @@ def get_yn_input(prompt):
print("Invalid input. Please enter 'y' or 'n'.")
return None
async def create_web_session():
return aiohttp.ClientSession()

View File

@@ -23,4 +23,4 @@ youtube_client_blacklist = ["TVHTML5_FOR_KIDS"]
config_file_blacklist_keys = ["config_file", "data_dir"]
github_wiki_base_url = "https://github.com/dmunozv04/iSponsorBlockTV/wiki"
github_wiki_base_url = "https://github.com/dmunozv04/iSponsorBlockTV/wiki"

View File

@@ -84,7 +84,8 @@ class Handler(ssdp.aio.SSDP):
def request_received(self, request: ssdp.messages.SSDPRequest, addr):
raise NotImplementedError(
"Request received is not implemented, this is a client")
"Request received is not implemented, this is a client"
)
async def find_youtube_app(web_session, url_location):

View File

@@ -166,11 +166,11 @@ class YtLoungeApi(pyytlounge.YtLoungeApi):
"""
Mute or unmute the device (if the device already
is in the desired state, nothing happens)
:param bool mute: True to mute, False to unmute
:param bool override: If True, the command is sent even if the
device already is in the desired state
TODO: Only works if the device is subscribed to the lounge
"""
if mute: