Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""LICENSE
2Copyright 2015 Hermann Krumrey <hermann@krumreyh.com>
4This file is part of toktokkie.
6toktokkie is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
11toktokkie is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
16You should have received a copy of the GNU General Public License
17along with toktokkie. If not, see <http://www.gnu.org/licenses/>.
18LICENSE"""
20from typing import List
21from toktokkie.metadata.base.Metadata import Metadata
22from toktokkie.enums import IdType, MediaType
23from toktokkie.metadata.book_series.BookSeriesPrompter import \
24 BookSeriesPrompter
25from toktokkie.metadata.book_series.BookSeriesRenamer import \
26 BookSeriesRenamer
27from toktokkie.metadata.book_series.BookSeriesValidator import \
28 BookSeriesValidator
31class BookSeries(
32 Metadata, BookSeriesRenamer, BookSeriesPrompter, BookSeriesValidator
33):
34 """
35 Metadata class that handles book series
36 """
38 @classmethod
39 def media_type(cls) -> MediaType:
40 """
41 :return: The Nook media type
42 """
43 return MediaType.BOOK_SERIES
45 @classmethod
46 def valid_id_types(cls) -> List[IdType]:
47 """
48 :return: A list of valid ID types
49 """
50 return [
51 IdType.ISBN,
52 IdType.MYANIMELIST,
53 IdType.ANILIST,
54 IdType.KITSU
55 ]