修复youtube缓存 (#574)
This commit is contained in:
1 parent
bc105aec57
commit
21affdcbdf
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user