Skip to content

Commit

Permalink
fix typos + add link to gh repo
Browse files Browse the repository at this point in the history
  • Loading branch information
NoPlagiarism committed Jul 30, 2024
1 parent 28bddf0 commit 0f8c3b1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"Name": "FlowShiki",
"Description": "Search anime/manga on Shikimori with Flow (Launcher)",
"Author": "NoPlagiarism",
"Version": "0.0.1",
"Version": "0.0.2",
"Language": "python",
"ExecuteFileName": "main.py",
"IcoPath": "Artworks/logo128.png"
"IcoPath": "Artworks/logo128.png",
"Website": "https://github.com/NoPlagiarism/FlowShiki"
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "flowshiki"
version = "0.0.1"
version = "0.0.2"
description = "Flow Launcher plugin to search through Shikimori"
authors = ["NoPlagiarism <[email protected]>"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ def query(query: str) -> ResultResponse:
if not search_tags.get_ids():
raise ValueError("No ids found")
except Exception as e:
return send_results([Result(Title="Enter valid ids", SubTitle="Readme is planned", IcoPath=FS_ICO_PATH)])
return send_results([Result(Title="Enter valid ids", SubTitle="Readme is planned", IcoPath=FS_ICO_PATH)], JsonRPCAction=api.open_url("https://github.com/NoPlagiarism/FlowShiki"))
if search_tags.show_settings_menu:
return OSettingsMenu.query(query)
""" MEDIA ENTRIES """
if len(query) <= 2:
return send_results([
Result(Title="Enter your query", SubTitle="Readme is planned", IcoPath=FS_ICO_PATH, Score=10),
Result(Title="Enter your query", SubTitle="Readme is planned", IcoPath=FS_ICO_PATH, Score=10, JsonRPCAction=api.open_url("https://github.com/NoPlagiarism/FlowShiki")),
Result(Title="m:", SubTitle="Search Manga", IcoPath=FS_ICO_PATH),
Result(Title="a:", SubTitle="Search Anime", IcoPath=FS_ICO_PATH),
Result(Title="b:", SubTitle="Search Both", IcoPath=FS_ICO_PATH)
Expand Down
2 changes: 1 addition & 1 deletion src/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def make_context_menu(self, media: MediaEntry | dict):
results.append(
Result(
Title=ext.name,
SubTitle=f"Открыть на {URL(search_url).host}",
SubTitle=f"Искать на {URL(search_url).host}",
IcoPath=self.fav_man.get_fav_path(search_url) or BROWSER,
JsonRPCAction=api.open_url(search_url)
)
Expand Down

0 comments on commit 0f8c3b1

Please sign in to comment.