|
6 | 6 | "movies": ["id", "count", "title"], |
7 | 7 | "tomes": ["id", "count", "title"], |
8 | 8 | "chapters": ["id", "count", "title", "tome_id"], |
9 | | - "arcs": ["id", "count", "saga_id"], |
| 9 | + "arcs": ["id", "count", "title", "saga_id"], |
10 | 10 | "sagas": ["id", "count", "title"], |
11 | 11 | "hakis": ["id", "count", "name", "roman_name", "characters_id"], |
12 | 12 | "characters": ["id", "count", "name", "job", "bounty", "status", "size", "crew_id", "fruit_id"], |
@@ -51,7 +51,8 @@ def build_url(endpoint, search=None, resource=None): |
51 | 51 |
|
52 | 52 |
|
53 | 53 | def adding_search(endpoint, search, resource=None): |
54 | | - if search in STRING_SEARCHES: |
| 54 | + # This is a special case cause the API endpoints are weird |
| 55 | + if search in STRING_SEARCHES or search == "title" and endpoint == "arcs": |
55 | 56 | return f"{URL}{endpoint}/search/{search}/{resource}" |
56 | 57 | elif search in NO_SEARCH_ID_SEARCHES and endpoint not in ['boats', 'arcs']: |
57 | 58 | return f"{URL}{endpoint}/{search[:-3]}/{resource}" |
|
0 commit comments