오랜만에 서버 정리하고 커밋. 파일 위치를 정리했다. 캘리버 DB 를 열고 정보를 열람. Pupil 을 통해 다운받은 정보를 관리하기 위해 새로운 클래스 추가
54 lines
1.2 KiB
Python
54 lines
1.2 KiB
Python
import sqlite3
|
|
|
|
import UtilPack as util
|
|
import MgrSQLiteDB as MyDB
|
|
|
|
class MgrPupilColDB(MyDB.MgrSQLiteDB):
|
|
|
|
# ID -> HitomiID, ArchiveID, Title, Authors, Group, Series, Type. Language, Tags, Description,
|
|
def GetBookByID(self, nID: int) -> dict:
|
|
pass
|
|
|
|
def GetArchiveBrBookID(self, nID: int ) -> list[str]:
|
|
pass
|
|
|
|
def GetAuthorByID(self, nID: int) -> list[str]:
|
|
pass
|
|
|
|
def GetTagByID(self, nID: int) -> list[str]:
|
|
pass
|
|
|
|
def GetSeriesByID(self, nID: int) -> list[str]:
|
|
pass
|
|
|
|
def GetGroupByID(self, nID: int) -> list[str]:
|
|
pass
|
|
|
|
def AddBook(self, strHitomiID: str, strArchiveID: str, strTitle: str, listAuthors: list[str],
|
|
listGroups: list[str], listSeries: list[str], strType: str, strLanguage: str,
|
|
listTags: list[str], strDescription: str) -> int:
|
|
pass
|
|
|
|
def AddAuthor(self, strName: str) -> int:
|
|
pass
|
|
|
|
def AddTag(self, strName: str) -> int:
|
|
pass
|
|
|
|
def AddsSeries(self, strName: str) -> int:
|
|
pass
|
|
|
|
def AddGroup(self, strName: str) -> int:
|
|
pass
|
|
|
|
def AddArchive(self, strName: str, setArcPath: str) -> int:
|
|
pass
|
|
|
|
def AddFileInfo(self) -> int:
|
|
pass
|
|
|
|
|
|
|
|
|
|
|