Update DataClass.py, GetArc_Ehentai.py, and 7 more files...

데이터 클래스 정의, 퍼필 다운로더 json 파서...
This commit is contained in:
2024-05-13 21:48:40 +09:00
parent cc02151899
commit e9f8a7323c
9 changed files with 762 additions and 218 deletions

View File

@@ -1,48 +1,50 @@
class MangaMetaInfo:
title = ""
url = ""
Series = ""
artists = []
Tags = []
fileurl = ""
galID = ""
def AddArtist(self, strArtist):
self.artists.append(strArtist)
def AddTag(self, strTag):
self.tags.append(strTag)
class SeriesInfo:
strSeries = ""
strUrl = ""
def __init__(self, series, url):
self.strSeries = series
self.strUrl = url
class TypeInfo:
strTyep = ""
strUrl = ""
def __init__(self, strType, url):
self.strTyep = strType
self.strUrl = url
class CBZInfo:
def __init__(self, title, url):
self.title = title
self.url = url
self.serires = ""
self.type = ""
self.filename = ""
self.torrent = ""
self.language = ""
self.gallery_id = 0
# 중복을 허용하지 않는 집합으로 초기화
self.related_galID = set()
self.artists = set()
self.tags = set()
def __str__(self):
return f"{self.title} by {self.author} ({self.publication_year})"
def AddTag(self, name):
self.tags.add(name)
def RmvTag(self, name):
self.tags.discard(name)
def AddArtist(self, name):
self.artists.add(name)
def RmvArtist(self, name):
self.artists.discard(name)
class ArtistInfo:
strArtist = ""
strUrl = ""
def __init__(self, artist, url):
self.strArtist = artist
self.strUrl = url
class TagInfo:
def __init__(self, name, url):
self.name = name
self.url = url
class TagIngo:
strTag = ""
strUrl = ""
def __str__(self):
return f"{self.name} : {self.url}"
def __init__(self, tag, url):
self.strTag = tag
self.strUrl = url
class ImageFileInfo:
def __init__(self, name, height, width, hashValue, bWebp):
self.name = name
self.height = height
self.width = width
self.hashValue = hashValue
self.bWebp = bWebp