Merge pull request #77 from boltgolt/feature-device-name

Allow setting device name to custom string
This commit is contained in:
David
2025-02-19 18:26:12 +01:00
committed by GitHub
3 changed files with 5 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
"mute_ads": true,
"skip_ads": true,
"auto_play": true,
"join_name": "iSponsorBlockTV",
"apikey": "",
"channel_whitelist": [
{"id": "",

View File

@@ -42,6 +42,7 @@ class Config:
self.mute_ads = False
self.skip_ads = False
self.auto_play = True
self.join_name = "iSponsorBlockTV"
self.__load()
def validate(self):

View File

@@ -19,7 +19,9 @@ class YtLoungeApi(pyytlounge.YtLoungeApi):
logger=None,
web_session: ClientSession = None,
):
super().__init__("iSponsorBlockTV", logger=logger)
super().__init__(
config.join_name if config else "iSponsorBlockTV", logger=logger
)
self.auth.screen_id = screen_id
self.auth.lounge_id_token = None
self.api_helper = api_helper