summaryrefslogtreecommitdiff
path: root/jfr_playoff/data/match
diff options
context:
space:
mode:
authorMichaƂ Klichowicz <emkael@tlen.pl>2026-09-10 13:11:24 +0200
committerGitHub <noreply@github.com>2026-09-10 13:11:24 +0200
commita38136944f35a2543ae2c1e470406a6b74d76ffd (patch)
tree0e12c020e3cf629ead5a9eba7303630e8d637f1e /jfr_playoff/data/match
parente539fa58a5329ae0e6c9ccb32e217619a55f3130 (diff)
parent13906ea84e04ae3b0e28c4e3576fe93278d7eecb (diff)
Merge pull request #57 from emkael/gzipped-tcjsonHEADmaster
GZIP-ed TC JSON files support
Diffstat (limited to 'jfr_playoff/data/match')
-rw-r--r--jfr_playoff/data/match/tcjson.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/jfr_playoff/data/match/tcjson.py b/jfr_playoff/data/match/tcjson.py
index 60f6f81..470ac91 100644
--- a/jfr_playoff/data/match/tcjson.py
+++ b/jfr_playoff/data/match/tcjson.py
@@ -41,7 +41,9 @@ class TCJsonMatchInfo(MatchInfoClient):
round_results = json.loads(
p_remote.fetch_raw(
self._get_results_link(
- 'o%d-%d.json' % (session_no, round_no))))
+ 'o%d-%d.json' % (session_no, round_no)),
+ gzip_fallback = True
+ ))
table_id = str(table_no)
for result in round_results['Results']:
if result['Table'] == table_id:
@@ -103,7 +105,9 @@ class TCJsonMatchInfo(MatchInfoClient):
def running_link(self):
settings = json.loads(p_remote.fetch_raw(
- self._get_results_link('settings.json')))
+ self._get_results_link('settings.json'),
+ gzip_fallback=True
+ ))
if settings['ShowOnlyResults']:
PlayoffLogger.get('match.tcjson').info(
'ShowOnlyResults active, no running segment link available')