diff options
author | emkael <emkael@tlen.pl> | 2019-12-30 15:03:56 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-12-30 15:46:42 +0100 |
commit | 5e66c1684a8a2b0597fc2633078c23e212cce228 (patch) | |
tree | aceb836619e4cde2f71cae5a71e27899f9b3a7cf /jfr_playoff/data/tournament/jfrhtml.py | |
parent | 9e29356e95c06907ace1239b1367b134155d3167 (diff) |
Auto-loading tournament result info client classes
Diffstat (limited to 'jfr_playoff/data/tournament/jfrhtml.py')
-rw-r--r-- | jfr_playoff/data/tournament/jfrhtml.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jfr_playoff/data/tournament/jfrhtml.py b/jfr_playoff/data/tournament/jfrhtml.py index 017ce3b..ac57d4c 100644 --- a/jfr_playoff/data/tournament/jfrhtml.py +++ b/jfr_playoff/data/tournament/jfrhtml.py @@ -7,6 +7,14 @@ from jfr_playoff.data.tournament import TournamentInfoClient class JFRHtmlTournamentInfo(TournamentInfoClient): + @property + def priority(self): + return 30 + + def is_capable(self): + return ('link' in self.settings) \ + and (self.settings['link'].endswith('leaderb.html')) + def get_exceptions(self, method): if method == 'get_results_link': return (KeyError, ValueError) |