tretrauit
da3ee30ab1
Also add function to get the diff archive (for faster updating) Download function soon, although I can't make sure that the download function will work properly (like pause, resume download etc.)
13 lines
381 B
Python
13 lines
381 B
Python
class Voicepack:
|
|
def __init__(self, language, name, path, size, md5, raw):
|
|
self.language = language
|
|
self.name = name
|
|
self.path = path
|
|
self.size = size
|
|
self.md5 = md5
|
|
self.raw = raw
|
|
|
|
@staticmethod
|
|
def from_dict(data):
|
|
return Voicepack(data["language"], data["name"], data["path"], data["size"], data["md5"], data)
|