Skip to content

Commit

Permalink
max bandwidth changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky4546 committed Feb 27, 2023
1 parent f133ef4 commit a9122a2
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/plugins/plugin_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,3 @@ def get_best_stream(self, _url, _channel_id):
def check_logger_refresh(self):
if not self.logger.isEnabledFor(40):
self.logger = logging.getLogger(__name__+str(threading.get_ident()))
self.logger.notice('######## CHECKING AND UPDATING LOGGER 40')
1 change: 0 additions & 1 deletion lib/plugins/plugin_epg.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,3 @@ def is_refresh_expired(self):
def check_logger_refresh(self):
if not self.logger.isEnabledFor(40):
self.logger = logging.getLogger(__name__+str(threading.get_ident()))
self.logger.notice('######## CHECKING AND UPDATING LOGGER3')
4 changes: 2 additions & 2 deletions lib/plugins/plugin_instance_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __init__(self, _plugin_obj, _instance_key):
self.scheduler_tasks()
self.enabled = True
self.channels = None
self.programs = None
self.epg = None
if not self.config_obj.data[self.config_section]['enabled']:
self.enabled = False
Expand Down Expand Up @@ -145,11 +146,10 @@ def refresh_epg(self):
self.logger.info('{}:{} Plugin instance disabled, not refreshing EPG' \
.format(self.plugin_obj.name, self.instance_key))
return False

def check_logger_refresh(self):
if not self.logger.isEnabledFor(40):
self.logger = logging.getLogger(__name__+str(threading.get_ident()))
self.logger.notice('######## CHECKING AND UPDATING LOGGER2')
if self.channels is not None:
self.channels.check_logger_refresh()
if self.epg is not None:
Expand Down
1 change: 0 additions & 1 deletion lib/plugins/plugin_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ def check_logger_refresh(self):
if not self.logger.isEnabledFor(40):
self.logger = logging.getLogger(__name__+str(threading.get_ident()))
for inst, inst_obj in self.instances.items():
self.logger.notice('######## CHECKING AND UPDATING LOGGER')
inst_obj.check_logger_refresh()

@property
Expand Down
1 change: 0 additions & 1 deletion lib/plugins/plugin_programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ def get_uri_data(self, _uri, _header=None):
def check_logger_refresh(self):
if not self.logger.isEnabledFor(40):
self.logger = logging.getLogger(__name__+str(threading.get_ident()))
self.logger.notice('######## CHECKING AND UPDATING LOGGER3')

0 comments on commit a9122a2

Please sign in to comment.