Skip to content

Commit 926fe99

Browse files
committed
Fix kitsu url
1 parent 016be16 commit 926fe99

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.5
1+
0.1.6

minoshiro/web_api/kitsu.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ async def search_entries(self, medium: Medium,
111111
if js:
112112
closest_entry = get_closest(query, js['data'])
113113
if closest_entry:
114-
closest_entry['url'] = closest_entry['links']['self']
114+
closest_entry['url'] = (
115+
f'https://kitsu.io/{medium_str}/'
116+
f'{closest_entry["attributes"]["slug"]}'
117+
)
115118
return closest_entry
116119

117120
async def get_entry_by_id(self, medium, id_, timeout=3) -> Optional[dict]:

0 commit comments

Comments
 (0)