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

Added support for statsV2 #1143

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ekorian
Copy link
Contributor

@ekorian ekorian commented Apr 25, 2024

There is now a statsV2 object that appears to be gradually replacing the original stats object.
This patch avoids crashes due to statsV2-only users, and gives priority to statsV2 over stats when both are present.

{
"stats": {"collectCount": 2787, "commentCount": 16000, "diggCount": 22600, "playCount": 1800000, "shareCount": 259}
}
{
"statsV2": {"collectCount": "2787", "commentCount": "15955", "diggCount": "22609", "playCount": "1776621", "shareCount": "259"}
}

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

Successfully merging this pull request may close these issues.

None yet

1 participant