mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-06 03:46:44 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user