25 lines
682 B
Python
25 lines
682 B
Python
#!/usr/bin/env python3
|
|
from enum import Enum
|
|
|
|
BOOKS_TITLES_TO_IGNORE = [
|
|
"KOReader Quickstart Guide",
|
|
"zb2rhkSwygt9vjkAEBj7tP5KVgFqejJqsJ2W3bYsrgiiKK8XL",
|
|
"zb2rhchGpo7P27mofV9hYjT63d9ZaQnbQ6LSfzmkvsYzvARif",
|
|
]
|
|
|
|
READCOMICSONLINE_URL = "https://readcomicsonline.ru"
|
|
|
|
|
|
class MediaSourceTag(str, Enum):
|
|
OPENLIBRARY = "source_openlibrary"
|
|
GOOGLE_BOOKS = "source_google_books"
|
|
COMICVINE = "source_comicvine"
|
|
LOCG = "source_locg"
|
|
KOREADER = "source_koreader"
|
|
SEMANTIC_SCHOLAR = "source_semantic_scholar"
|
|
AMAZON = "source_amazon"
|
|
|
|
@classmethod
|
|
def choices(cls):
|
|
return [(tag.value, tag.name.replace("_", " ").title()) for tag in cls]
|