Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Orientation in Study API #11916

Closed
LandonSchropp opened this issue Nov 19, 2022 · 4 comments
Closed

Include Orientation in Study API #11916

LandonSchropp opened this issue Nov 19, 2022 · 4 comments

Comments

@LandonSchropp
Copy link

LandonSchropp commented Nov 19, 2022

When querying the study API, it'd be nice if the board's orientation could be included. For example, if I fetch the following study:

curl https://lichess.org/study/mbl0anSj/HasNlTst.pgn

Then there's no way to tell that the board is oriented towards black in the PGN headers.

[Event "Albin Countergambit: Albin Countergambit"]
[Site "https://lichess.org/study/mbl0anSj/HasNlTst"]
[Result "*"]
[UTCDate "2022.10.27"]
[UTCTime "02:37:32"]
[Variant "Standard"]
[ECO "D08"]
[Opening "Queen's Gambit Declined: Albin Countergambit, Lasker Trap"]
[Annotator "https://lichess.org/@/ChesserciseXYZ"]

Thank you for the wonderful site!

@ghost
Copy link

ghost commented Jan 23, 2023

The study is exported as PGN. Unfortunately, PGN itself does not know such a tag.

@ornicar
Copy link
Collaborator

ornicar commented Jan 23, 2023

@ghost
Copy link

ghost commented Jan 23, 2023

documented on https://lichess.org/api#tag/Studies/operation/studyExportAllPgn

It's nice that you've already implemented that.

@LandonSchropp
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants