mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
fix(rclone): specify UTF-8 encoding when save config
This commit is contained in:
@@ -39,7 +39,7 @@ class Rclone(StorageBase):
|
|||||||
path = Path(filepath)
|
path = Path(filepath)
|
||||||
if not path.parent.exists():
|
if not path.parent.exists():
|
||||||
path.parent.mkdir(parents=True)
|
path.parent.mkdir(parents=True)
|
||||||
path.write_text(conf.get('content'))
|
path.write_text(conf.get('content'), encoding='utf-8')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __get_hidden_shell():
|
def __get_hidden_shell():
|
||||||
|
|||||||
Reference in New Issue
Block a user