def reinitialize_msl_handler(self, delete_msl_file=False):
     """
     Reinitialize the MSL handler
     :param delete_msl_file: if True delete the msl file data
     """
     LOG.debug('Reinitializing MSL handler')
     if delete_msl_file:
         common.delete_file(MSL_DATA_FILENAME)
     self._init_msl_handler()
Example #2
0
 def reinitialize_msl_handler(self, data=None):  # pylint: disable=unused-argument
     """
     Reinitialize the MSL handler
     :param data: set True for delete the msl file data, and then reset all
     """
     LOG.debug('Reinitializing MSL handler')
     if data is True:
         common.delete_file(MSL_DATA_FILENAME)
     self._init_msl_handler()
Example #3
0
 def purge_cache(self, pathitems=None):  # pylint: disable=unused-argument
     """Clear the cache. If on_disk param is supplied, also clear cached
     items from disk"""
     g.CACHE.invalidate(self.params.get('on_disk', False))
     if self.params.get('on_disk', False):
         common.delete_file(
             'resources.lib.services.playback.stream_continuity.ndb')
     if not self.params.get('no_notification', False):
         ui.show_notification(common.get_local_string(30135))