mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-07 04:16: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,
|
||||
) # 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()
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user