Skip to content

Wrong Twitch game set when game name has trailing space #136

Description

@strotlog

Steps:

  1. Use the game name "Midnight Manor " <- note the trailing space
  2. Set Twitch status using the game name

Bug: The game is inadvertently set to 'Delaware St. John: Volume 1: The Curse of Midnight Manor' (id=7941)
Expected: The game is set to 'Midnight Manor' (id=906445956), or an error is thrown

Looks like src/extension/srcom-api.ts has an opportunity where it could trim the string. Since it does not currently trim, the exact API fails and searchForTwitchGame goes on to call Twitch's "unsupported API", always selecting the first match from that. This behavior results in weird game names appearing for unclear reasons, as spaces often cannot be seen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions