Skip to content

Add some further API endpoints.#546

Merged
da3dsoul merged 4 commits intoShokoAnime:masterfrom
Cazzar:master
Jan 17, 2017
Merged

Add some further API endpoints.#546
da3dsoul merged 4 commits intoShokoAnime:masterfrom
Cazzar:master

Conversation

@Cazzar
Copy link
Copy Markdown
Member

@Cazzar Cazzar commented Jan 9, 2017

What this does is add some further information allowed via apiv2, functions are as follows:

Fuzzy search: Allows for a search that ignores characters by the following rules.
This applies on /api/serie/search as the flag ?fuzzy=true defaulting to false.

  • Invalid path characters + ()+: are removed.
  • Regex: [ ]{2,} (more than one consecutive spaces) are removed.
  • -.: replaced with spaces as media mangers like plex will do this.

I am utilising above for: ShokoMetadata.bundle

Search episode by filename
Exposed as /api/ep/getbyfilename?filename=...
Allows for searching for the AnimeEpisode reference from the filename on disk.

@da3dsoul da3dsoul merged commit 66f60bd into ShokoAnime:master Jan 17, 2017
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.

2 participants