Exemple #1
0
    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
Exemple #2
0
    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
Exemple #3
0
    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])
Exemple #4
0
  def save_crests(self):
    teams = self.data.load_teams()

    for team in teams:
      in_thread(target=self.download_team_crest, args=[team])
Exemple #5
0
 def update_matches_data(self):
     in_thread(target=self.do_update_matches_data)
Exemple #6
0
 def do_initial_setup(self):
     in_thread(target=self.initial_setup)
Exemple #7
0
    def update_live_data(self):
        if self.live_fixtures:
            in_thread(target=self.do_update_live_data)

        return True
Exemple #8
0
    def open(self, url):
        self.player.url = None
        self.player.stop()

        self.player.loading = True
        in_thread(target=self.open_stream, args=[url])
Exemple #9
0
 def update_channels_data(self):
     in_thread(target=self.do_update_channels_data)