@@ -52,7 +52,7 @@ def __init__(self, db_controller: DataController, mal_config: dict,
52
52
53
53
:param loop:
54
54
An asyncio event loop. If not provided will use the default
55
- event loop.
55
+ event loop.
56
56
"""
57
57
self .session_manager = SessionManager ()
58
58
mal_user , mal_pass = mal_config .get ('user' ), mal_config .get ('password' )
@@ -128,7 +128,7 @@ async def from_postgres(cls, mal_config: dict, db_config: dict = None,
128
128
:param loop:
129
129
An asyncio event loop. If not provided will use the default
130
130
event loop.
131
-
131
+
132
132
:return:
133
133
Instance of `minoshiro` with class `PostgresController`
134
134
as the database controller.
@@ -241,10 +241,10 @@ async def yield_data(self, query: str, medium: Medium,
241
241
:param sites:
242
242
an iterable of sites desired. If None is provided, will
243
243
search all sites by default.
244
-
245
- :param timeout:
244
+
245
+ :param timeout:
246
246
The timeout in seconds for each HTTP request. Defualt is 3.
247
-
247
+
248
248
:return:
249
249
an asynchronous generator that yields the site and data
250
250
in a tuple for all sites requested.
@@ -278,8 +278,8 @@ async def get_data(self, query: str, medium: Medium,
278
278
:param sites:
279
279
an iterable of sites desired. If None is provided, will
280
280
search all sites by default.
281
-
282
- :param timeout:
281
+
282
+ :param timeout:
283
283
The timeout in seconds for each HTTP request. Defualt is 3.
284
284
285
285
:return: Data for all sites in a dict {Site: data}
@@ -366,10 +366,10 @@ async def __find_anilist(self, cached_data, cached_ids,
366
366
:param medium: the medium type.
367
367
368
368
:param query: the search query.
369
-
370
- :param timeout:
369
+
370
+ :param timeout:
371
371
The timeout in seconds for each HTTP request. Defualt is 3.
372
-
372
+
373
373
:return: the anilist data and id in a tuple if found.
374
374
"""
375
375
if medium not in (Medium .ANIME , Medium .MANGA , Medium .LN ):
@@ -661,10 +661,10 @@ async def __get_result(self, cached_data, cached_id, query, names,
661
661
:param query: the search query.
662
662
663
663
:param medium: the medium type.
664
-
665
- :param timeout:
664
+
665
+ :param timeout:
666
666
The timeout in seconds for each HTTP request. Defualt is 3.
667
-
667
+
668
668
:return: Search results data and id in a tuple for that site.
669
669
"""
670
670
try :
0 commit comments