Siderite / lichessTools

Browser extension that turbocharges the lichess.org site with extra functionalities
MIT License
29 stars 5 forks source link

User request: study stats #362

Open Siderite opened 10 months ago

Siderite commented 10 months ago

It would be nice if you could see the statistics for a study, for example the total number of moves, time since created, etc...

It could work in general, too. Like counting the number of moves in a PGN in Analysis board.

lichess.analysis.study.data contains (amongst other things):

Unfortunately, this doesn't apply to the study list because there are no useful APIs for getting this information. If a study is private, it will say it's private even if you are a contributor. One option is to execute a call at https://lichess.org/study/{studyId} and parse the included JSON, but it seems wasteful to do that for each study on a page.

Siderite commented 9 months ago

Issue added to lichess for a more suitable API: https://github.com/lichess-org/lila/issues/14563