fix: 对 xml 中的文本内容转义,避免特殊字符影响

This commit is contained in:
amtoaer
2024-02-26 13:26:07 +08:00
parent e25ed452b4
commit 911ce84f5a
2 changed files with 17 additions and 12 deletions

View File

@@ -65,10 +65,6 @@ class FavoriteItem(Model):
class Meta:
unique_together = (("bvid", "favorite_list_id"),)
@property
def safe_name(self) -> str:
return self.name.replace("/", "_")
@property
def tmp_video_path(self) -> Path:
return Path(settings.path_mapper[self.favorite_list_id]) / f"tmp_{self.bvid}_video"