fix download
This commit is contained in:
parent
5ceaf94169
commit
668cfb72c3
@ -168,7 +168,9 @@ class MediaInfo:
|
||||
从字典中初始化
|
||||
"""
|
||||
for key, value in data.items():
|
||||
setattr(self, key, value)
|
||||
attr = getattr(self, key, None)
|
||||
if attr and not isinstance(attr, property):
|
||||
setattr(self, key, value)
|
||||
if isinstance(self.type, str):
|
||||
self.type = MediaType(self.type)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user