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
"Submit run to speedrun.com" Button in context menu #2211
Conversation
Would it be possible to fix the issues with the existing functionality instead? |
I guess it would but i'm not even sure what they were actually intended to do.. I actually wanted to remove those since (according to google) nobody has managed to make those work for years... I might look into those tomorrow and see if i get it |
In all honesty..
I might spend some more time on it and delete those two buttons and related functionality and polish my solution a bit better... (maybe by moving the API key in global settings for example) |
|
Currently submit run opens a window that tells you you need to add an API key (but there's no way to add an API key anywhere... Meanwhile associate run opens a popup that asks for the run url, but it accepts no url whatsoever.. i tried with many combinations... Googling around it appears it actually is supposed to work with splits.io or something.. but that's now a paid service and, frankly i never used it and o don't know many people who use it in my community... But now that that i understand better what the original thought behind those was i will look into it more and fix it.. Imo tho the "submit" button should not be in the edit splits/additional info.. that's hidden away behind too many clicks... I wanna sett hat stuff up once when i set my splits up then just right click and submit from the context menu... I will remove the old buttons and their (not working) functionality and make the submit function a bit better. Might i ask, while I'm at it, some clarification regards the difference between game time and time with no loads? Is it me or they're one and the same for livesplit? All i could find was the real time and another variable that stores the load time, so one minus the other is time w/o loads, but isn't that the same as in-game time too? Is there some documentation about that somewhere? EDIT: reminder for when it look at this again, look into an automatic timestamp functionality for twitch, and the possibility to create an highlight with the last two timestamps through twitch api |
Sharing a run to speedrun.com previously opened a web page on speedrun.com that showed the API key, which LiveSplit then retrieved. If this isn't working anymore, we should update it to make it work. "Associate run" should accept a speedrun.com run URL. You should be able to submit a run from either "Edit Splits" or the "Share" dialog. In order to get a PR merged, I'd suggest not trying to change this behavior. IGT and Time Without Loads are the same in LiveSplit, but distinct on Speedrun.com. It depends on which timing methods the game accepts in its rules. |
Highlighting functionality already exists: https://github.com/furious/LiveSplit.AutoStreamMarker |
I don't see how you can make an automatic API key retrieval tho... This is the link used by the app: That URL doesn't exist anymore, but even if you used the current one (https://www.speedrun.com/eltharynd/settings/api) it wouldn't work without you authenticating first.
I understand what the thought behind this was, but it wasn't a good one (on SR.com's part, since it worked that way apparently). That way we'd be authenticating through the regular, intended SR procedure... |
Rather than a new field in the settings, can we just replace the API key retrieval that we currently have with a dialog window that has an input field for the API key? (Should be similar to the window that opens when you click "Open Splits from URL".) |
The Speedrun.com API key should be in the WebCredentials class, not in the Settings. |
""comment"": ""Automatically submitted by LiveSplit, video might be temporary."", | ||
""video"": ""https://youtube.com/watch?v=mumblefoo"" | ||
VARIABLES_PLACEHOLDER | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have SpeedrunComSharp for all of this. Please limit the scope of this PR to just replacing the current way of retrieving the API key (opening a webpage and grabbing it automatically) with a new way (a dialog box with a link to the settings page and an input field for the API key) - otherwise, this won't get merged.
There is no "straight to API key" link until you've already logged in or inserted the username... besides...
It would not only be a security risk... I will no develop something that lets user insert their own password for someone else's access not through their own API... that is just bad practice... and a safety risk... I can fix the rest of the code if you want... Let me know if you would accept this compromise, otherwise I will have to make this as a plugin instead |
So... the share to speedrun.com feature has never worked for me..
So i implemented my own..
You have to provide your API key in the Additional Info tab, then on the right click context menu you can chose submit to sr.com to automatically post the run with a placeholder video.
c# and .net are not exactly my forte so if you guys could have a look at it that would be great..
tyvm