def update_live_data(self): fixtures = self.app.data.load_fixtures(current=True, today_only=True) if fixtures and fixtures[0].date <= now(): in_thread(target=self.do_update_live_data) return True
def update_live_data(self): match_items = self.matches_list.get_children() if match_items and match_items[0].fixture.date <= now(): in_thread(target=self.do_update_live_data) return True
def open(self, url): """Opean stream in a new thread""" self.player.url = None self.player.stop() self.player.loading = True in_thread(target=self.open_stream, args=[url])
def save_crests(self): teams = self.data.load_teams() for team in teams: in_thread(target=self.download_team_crest, args=[team])
def update_matches_data(self): in_thread(target=self.do_update_matches_data)
def do_initial_setup(self): in_thread(target=self.initial_setup)
def update_live_data(self): if self.live_fixtures: in_thread(target=self.do_update_live_data) return True
def open(self, url): self.player.url = None self.player.stop() self.player.loading = True in_thread(target=self.open_stream, args=[url])
def update_channels_data(self): in_thread(target=self.do_update_channels_data)