mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2026-01-27 04:40:51 +03:00
Merge pull request #77 from boltgolt/feature-device-name
Allow setting device name to custom string
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
"mute_ads": true,
|
"mute_ads": true,
|
||||||
"skip_ads": true,
|
"skip_ads": true,
|
||||||
"auto_play": true,
|
"auto_play": true,
|
||||||
|
"join_name": "iSponsorBlockTV",
|
||||||
"apikey": "",
|
"apikey": "",
|
||||||
"channel_whitelist": [
|
"channel_whitelist": [
|
||||||
{"id": "",
|
{"id": "",
|
||||||
|
|||||||
@@ -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,9 @@ 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
|
||||||
|
)
|
||||||
self.auth.screen_id = screen_id
|
self.auth.screen_id = screen_id
|
||||||
self.auth.lounge_id_token = None
|
self.auth.lounge_id_token = None
|
||||||
self.api_helper = api_helper
|
self.api_helper = api_helper
|
||||||
|
|||||||
Reference in New Issue
Block a user