diff --git a/config.json.template b/config.json.template index 4dd4479..302e981 100644 --- a/config.json.template +++ b/config.json.template @@ -12,10 +12,12 @@ "skip_count_tracking": true, "mute_ads": true, "skip_ads": true, + "device_name": "iSponsorBlockTV", "apikey": "", "channel_whitelist": [ {"id": "", "name": "" } ] -} \ No newline at end of file +} + diff --git a/iSponsorBlockTV/helpers.py b/iSponsorBlockTV/helpers.py index 9649bea..c862231 100644 --- a/iSponsorBlockTV/helpers.py +++ b/iSponsorBlockTV/helpers.py @@ -38,6 +38,7 @@ class Config: self.skip_count_tracking = True self.mute_ads = False self.skip_ads = False + self.device_name = "iSponsorBlockTV" self.__load() def validate(self): diff --git a/iSponsorBlockTV/ytlounge.py b/iSponsorBlockTV/ytlounge.py index f0e3efe..8c9f204 100644 --- a/iSponsorBlockTV/ytlounge.py +++ b/iSponsorBlockTV/ytlounge.py @@ -7,7 +7,7 @@ create_task = asyncio.create_task class YtLoungeApi(pyytlounge.YtLoungeApi): def __init__(self, screen_id, config=None, api_helper=None): - super().__init__("iSponsorBlockTV") + super().__init__(config.device_name if config else "iSponsorBlockTV") self.auth.screen_id = screen_id self.auth.lounge_id_token = None self.api_helper = api_helper