Add downloading translator books

This commit is contained in:
2023-06-07 01:33:05 +02:00
parent d7e74b6b5e
commit a0718c637e
4 changed files with 29 additions and 1 deletions

View File

@@ -27,6 +27,8 @@ class TaskCreator:
books_getter = LibraryClient.get_sequence_books
case ObjectType.AUTHOR:
books_getter = LibraryClient.get_author_books
case ObjectType.TRANSLATOR:
books_getter = LibraryClient.get_translator_books
while current_page <= pages_count:
book_page = await books_getter(object_id, allowed_langs, page=current_page)