osu!ex v0.2.0 OsuEx.Osr View Source

Parses and downloads .osr files.

Link to this section Summary

Functions

Parses a replay file. The argument can be either the file path or the contents

Same as parse/1, but raises exceptions

Link to this section Functions

Link to this function

download_replay(beatmap, player, opts \\ []) View Source
download_replay(pos_integer(), OsuEx.API.user_id(), keyword()) ::
  {:ok, binary()} | {:error, term()}

Downloads a replay file.

Link to this function

parse(path_or_data) View Source
parse(binary()) :: {:ok, map()} | {:error, Exception.t()}

Parses a replay file. The argument can be either the file path or the contents.

Link to this function

parse!(path_or_data) View Source
parse!(binary()) :: map()

Same as parse/1, but raises exceptions.