修复youtube缓存 (#574)

This commit is contained in:
CoolZxp authored and GitHub committed 2023-07-30 12:25:22 +00:00
1 parent bc105aec57
commit 21affdcbdf
1 file changed
+1 -1
+1 -1
View File
@@ -127,7 +127,7 @@ class Youtube(DownloadBase):
self.download_url = entry['url']
break
with open(cache_filename, "w") as f:
with open(cache_filename, "w", encoding='utf-8') as f:
yaml.dump(cache, f, encoding='utf-8', allow_unicode=True)
return self.download_url is not None