diff --git a/src/iSponsorBlockTV/api_helpers.py b/src/iSponsorBlockTV/api_helpers.py index 0c49646..7c4e86e 100644 --- a/src/iSponsorBlockTV/api_helpers.py +++ b/src/iSponsorBlockTV/api_helpers.py @@ -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 diff --git a/src/iSponsorBlockTV/config_setup.py b/src/iSponsorBlockTV/config_setup.py index 55fe68d..69302e6 100644 --- a/src/iSponsorBlockTV/config_setup.py +++ b/src/iSponsorBlockTV/config_setup.py @@ -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() diff --git a/src/iSponsorBlockTV/constants.py b/src/iSponsorBlockTV/constants.py index 83849a9..32532c5 100644 --- a/src/iSponsorBlockTV/constants.py +++ b/src/iSponsorBlockTV/constants.py @@ -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" \ No newline at end of file +github_wiki_base_url = "https://github.com/dmunozv04/iSponsorBlockTV/wiki" diff --git a/src/iSponsorBlockTV/dial_client.py b/src/iSponsorBlockTV/dial_client.py index 2f4cd45..be55cec 100644 --- a/src/iSponsorBlockTV/dial_client.py +++ b/src/iSponsorBlockTV/dial_client.py @@ -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): diff --git a/src/iSponsorBlockTV/ytlounge.py b/src/iSponsorBlockTV/ytlounge.py index 6dbdd0b..c07391f 100644 --- a/src/iSponsorBlockTV/ytlounge.py +++ b/src/iSponsorBlockTV/ytlounge.py @@ -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: