[tags] Add tags to scrobble media models
Some checks failed
build & deploy / test (push) Failing after 1m19s
build & deploy / deploy (push) Has been skipped

This commit is contained in:
2026-03-26 17:32:47 -04:00
parent 931246e043
commit 3d2f3cbe71
21 changed files with 493 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3
from enum import Enum
BOOKS_TITLES_TO_IGNORE = [
"KOReader Quickstart Guide",
@ -7,3 +8,16 @@ BOOKS_TITLES_TO_IGNORE = [
]
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"
@classmethod
def choices(cls):
return [(tag.value, tag.name.replace("_", " ").title()) for tag in cls]