utility class added

자료 저장 구조 고민중...
This commit is contained in:
2024-04-08 01:33:15 +09:00
parent 809748a73a
commit cc02151899
6 changed files with 217 additions and 61 deletions

View File

@@ -1,13 +1,48 @@
class MangaMetaInfo:
def __init__(self, title, url, lang, manType, *tags):
self.title = title
self.url = url
self.lang = lang
self.manType = manType
self.tags = tags
pass
title = ""
url = ""
Series = ""
artists = []
Tags = []
fileurl = ""
galID = ""
#series
#type
#languages
#tags
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 ArtistInfo:
strArtist = ""
strUrl = ""
def __init__(self, artist, url):
self.strArtist = artist
self.strUrl = url
class TagIngo:
strTag = ""
strUrl = ""
def __init__(self, tag, url):
self.strTag = tag
self.strUrl = url