Skip to content

Commit

Permalink
Implement Support for Splits I/O API URIs
Browse files Browse the repository at this point in the history
Submitting only supported Page URIs, which might not be what he user
specifies, especially with the speedrun.com API even always reporting
the API Uri.
  • Loading branch information
CryZe committed Aug 10, 2015
1 parent f888db4 commit a988ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SpeedrunComSharp/Runs/RunsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public Run Submit(string categoryId,
runElement.comment = comment;

if (splitsIOUri != null)
runElement.splitsio = splitsIOUri.PathAndQuery.Substring(1);
runElement.splitsio = splitsIOUri.PathAndQuery.Substring(splitsIOUri.PathAndQuery.LastIndexOf('/') + 1);

if (variables != null)
{
Expand Down

0 comments on commit a988ca8

Please sign in to comment.