mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
fix download
This commit is contained in:
+3
-1
@@ -168,7 +168,9 @@ class MediaInfo:
|
|||||||
从字典中初始化
|
从字典中初始化
|
||||||
"""
|
"""
|
||||||
for key, value in data.items():
|
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):
|
if isinstance(self.type, str):
|
||||||
self.type = MediaType(self.type)
|
self.type = MediaType(self.type)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user