mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-07 12:26:45 +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,
|
True,
|
||||||
) # Return empty list and True to indicate
|
) # 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()[
|
vid_id_hashed = sha256(vid_id.encode("utf-8")).hexdigest()[
|
||||||
:4
|
:4
|
||||||
] # Hashes video id and gets the first 4 characters
|
] # 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'.")
|
print("Invalid input. Please enter 'y' or 'n'.")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
async def create_web_session():
|
async def create_web_session():
|
||||||
return aiohttp.ClientSession()
|
return aiohttp.ClientSession()
|
||||||
|
|
||||||
|
|||||||
@@ -23,4 +23,4 @@ youtube_client_blacklist = ["TVHTML5_FOR_KIDS"]
|
|||||||
|
|
||||||
config_file_blacklist_keys = ["config_file", "data_dir"]
|
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):
|
def request_received(self, request: ssdp.messages.SSDPRequest, addr):
|
||||||
raise NotImplementedError(
|
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):
|
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
|
Mute or unmute the device (if the device already
|
||||||
is in the desired state, nothing happens)
|
is in the desired state, nothing happens)
|
||||||
|
|
||||||
:param bool mute: True to mute, False to unmute
|
:param bool mute: True to mute, False to unmute
|
||||||
:param bool override: If True, the command is sent even if the
|
:param bool override: If True, the command is sent even if the
|
||||||
device already is in the desired state
|
device already is in the desired state
|
||||||
|
|
||||||
TODO: Only works if the device is subscribed to the lounge
|
TODO: Only works if the device is subscribed to the lounge
|
||||||
"""
|
"""
|
||||||
if mute:
|
if mute:
|
||||||
|
|||||||
Reference in New Issue
Block a user