Skip to content

Ask Kodi for game sources by the name it accepts - #92

Open
sunlollyking wants to merge 1 commit into
jurialmunkey:nexusfrom
sunlollyking:use-games-media-type
Open

sunlollyking wants to merge 1 commit into
jurialmunkey:nexusfrom
sunlollyking:use-games-media-type

Conversation

@sunlollyking

Copy link
Copy Markdown
Contributor

Files.GetSources accepts games, not game. The singular is rejected by schema validation, so browsing Game Sources in the shortcut editor returns nothing and a games menu item cannot be created.

Kodi only gained a games entry in the Files.Media enum recently, in xbmc/xbmc#29066, and that added games alone — matching the key the sources are stored under in sources.xml and the sources://games/ path itself. The singular has never been accepted.

Tested against a Kodi build carrying that change: with game the call is refused, with games the browser lists the configured game sources and a shortcut created from one resolves to a real path.

Related: #89 stops the refusal taking the whole script down, but the group still comes up empty without this.

Files.GetSources takes "games", not "game". The singular was rejected by
schema validation, so browsing Game Sources in the shortcut editor returned
nothing and the entry could not be used.

Kodi gained the enum entry in xbmc/xbmc#29066, which added "games" only --
matching the key the sources are stored under and the sources://games/ path.
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.

1 participant