mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-10 14:06:44 +03:00
Rename proposed device_name setting to join_name
This commit is contained in:
@@ -42,6 +42,7 @@ class Config:
|
|||||||
self.mute_ads = False
|
self.mute_ads = False
|
||||||
self.skip_ads = False
|
self.skip_ads = False
|
||||||
self.auto_play = True
|
self.auto_play = True
|
||||||
|
self.join_name = "iSponsorBlockTV"
|
||||||
self.__load()
|
self.__load()
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
|||||||
@@ -19,7 +19,11 @@ class YtLoungeApi(pyytlounge.YtLoungeApi):
|
|||||||
logger=None,
|
logger=None,
|
||||||
web_session: ClientSession = None,
|
web_session: ClientSession = None,
|
||||||
):
|
):
|
||||||
super().__init__("iSponsorBlockTV", logger=logger)
|
super().__init__(
|
||||||
|
config.join_name if config else "iSponsorBlockTV",
|
||||||
|
logger=logger
|
||||||
|
)
|
||||||
|
|
||||||
if web_session is not None:
|
if web_session is not None:
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
loop.run_until_complete(self.session.close())
|
loop.run_until_complete(self.session.close())
|
||||||
|
|||||||
Reference in New Issue
Block a user